RickK
(Rick Koston)
March 30, 2016, 5:22pm
1
Short of writing a small piece of code and embedding it, is it possible letterspacing animation with onclick in transitions?
I’m animating the hamburger menu and I would like to be able to animate the letterspacing on the menu text. Doesn’t seem possible without external code with current online interactions.
vincent
(Vincent Bidaux)
February 14, 2017, 5:19pm
2
Use any text,
Add a hand cursor for fine tuning,
http://vincent.polenordstudio.fr/snap/k8job.jpg
Edit the Pressed state
http://vincent.polenordstudio.fr/snap/5jw81.jpg
Transition on letter spacing,
Profit:
vincent
(Vincent Bidaux)
February 14, 2017, 5:20pm
3
And you may want to add css custom code to prevent selection on that because it just happens naturally
Also cursor may be un-needed as you do it on link already.
Add the class .noselect to the elements and this code:
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
RickK
(Rick Koston)
February 14, 2017, 5:31pm
4
WHAT YEAR IS THIS VINCE?!
I think when I asked that we didn’t have those transitions in at the time. Regardless thanks for the follow up.