Easing Wizard: linear function doesn't seem to work
I try to use the Easing Wizard from one of the latest vids from Kevin. However when I paste the code it says "unknown function linear". I tried to see if the code is working, but I don't see any differences. See screenshots


11 Replies
Where are you getting the message "unknown function linear"?
It is quite possible that your editor doesn't "know" that particular property/function but that doesn't mean that it won't work in the browser.
Oh right I checked VS-code and there I don't have the error. Unfortunately it still doesn't do anything haha

That is strange! I have also used several of the easing functions created by that site over the last few days and they have all worked.
What browser are you testing it on?
Can you create a minimal CodePen (or similar) where we can see it?
linear isnt a function
i think
it is 🤔
it was added super recently
kinda
probably a bug in vscode
i cant reproduce the error - with sass or css
can you click on the 3 dots and see what it says?
(all the divs close too but theres personal info there so that's why it's partial)
both Firefox and Chrome
What is the CSS that initiates/causes the transition?

As you haven't provided it, I have created a quick class to add scale on hover to be able to test it:
And you are right, the transition timing function doesn't work, at least not as you have defined it.
However it you break it up into individual transition declarations like this, it does work:
It is interesting that
linear()
doesn't work when using the shorthand when the shortand has more than one transition property defined. 🤔Ah I see the wiggle too! I don't try to add it when hovering, but on click. I think I can manage that from here 🙂 thank you
I have just created a completely new test and in this case the --wiggle (linear()) did work when defining it within the short-hand so I don't know what went wrong before.... I am going to try again with your code to see what I missed
ah..... you where just missing the unit (s) on the duration for the opacity 🤦♂️ Easily done!
yeah, sounds like a plugin is tripping up