๐ Today's featured project: TorusKit - Animate The Web | Javascript Animation Library | CSS Library by @toruskit
Check it out ๐
https://t.co/xgi77iRFtH
@Teo_Goulois Very nice! This is literally asking for subtle reveal and scroll animations :) If you have a minute, check @toruskit. It may help with that a lot
@Call_me_greyy Very nice! Have you considered adding some revealing or scroll animations here? With @toruskit you can add them in minutes instead of hours (plus no JS or CSS code needed)
The "shadows" are done by using a built-in group (stagger) utility, just by adding:
data-tor-group="
.text =>
sx(1.5) o(0)
animate:tz(/-25/px)
animate:[sx(1) o(1) <2s, delay: /+100/ms>]
animate:[scale(0.95) <infinite, alternate, 2s, delay: /+100/ms>]
"
And that's it!
Rotating is done with this simple HTML attribute:
`data-tor="
rotateY(-40deg) rotateX(30deg)
mouse(x, parallax):rotateY((+)10deg)
mouse(y, parallax):rotateX((-)10deg)
mouse(parallax):rotateZ((-)5deg)
"`
The `(+)/(-)` adds or removes the rotation of the current one. Yes, multiple transforms can be applied to one element!
@Inveeest That's right :) No need to write any JS or CSS. Everything is done in HTML, like `<div data-tor="hover:scale(2 <1s, spring>)"`. Even for viewport reveals, scroll/mouse effects, etc.
@ItsPeterDesign Impressive. I would add just a little bit of line height on the heading. Are you planning to animate this hero? It's almost asking for some reveal effects! You can use a @toruskit to make them fast;)