Tilt Hover Effects (tympanus.net)
7 years ago from Pedro Botelho, Developer
7 years ago from Pedro Botelho, Developer
The only problem I have with these effects is that it's super jarring when you initially hover them. Like it's a very harsh "jolt" effect the second you start your hover, then it gets smoother after you have started hovering it. It would be nice if it was a smoother transition.
Came here to congratulate the nice effect, and to say this ^ Otherwise it's really nice for desktop experiences :)
Hit this up in your browser:
* { transition: all .1s; }
Not as responsive anymore, but makes it slightly less jarring.
.edit: hmmm... I wonder if you can animate transition duration values...
In response to your edit, are you not looking to use a cubic-bezier function? This is trivial, just use a transition-timing-function
or specify the cubic-bezier in the shorthand you composed.
Not sure.
I want to accomplish the initial (within 2 ms) hover animation to have 0.2 or 0.3 seconds of animation delay for easing purposes, while further hovering will be at 0.
You could use a keyframe animation for the initial firing of the animation, with animation-fill-mode: forwards;
. It'd need some queueing in some way, with javascript probably. But its possible.
Though I personally wouldn't like that. The immediate interaction feedback is valuable.
So you want transition-delay:
Thanks for the feedback! We've included a second demo in which a CSS transition was added so the initial hover (and the whole movement) feels more smooth. You can find it here. (Hard reload required)
Heh, great timing! I made and posted something similar a few days ago by writing a simple Vue.js component + mostly used CSS to handle the rest:
Check it out: Parallax Depth Cards on CodePen
This is much better :) Thanks for sharing
Excellent work! I've seen the effect that inspired this and was very curious how they achieved it.
You'll lose this effect completely on mobile. Nice though.
Not necessarily, you could have the parallax effect tied to the device accelerometer rather than a mouse position.
atvImg accomplishes a similar effect that works on mobile. Actually, I think the effect is smoother
This one is best I think.
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now