16 comments

  • Zach ReedZach Reed, almost 3 years ago

    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.

    8 points
    • Chloe SilverChloe Silver, almost 3 years ago

      Came here to congratulate the nice effect, and to say this ^ Otherwise it's really nice for desktop experiences :)

      0 points
    • Dirk HCM van BoxtelDirk HCM van Boxtel, almost 3 years ago (edited almost 3 years ago )

      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...

      0 points
      • A. M. ­DouglasA. M. ­Douglas, almost 3 years ago

        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.

        0 points
        • Dirk HCM van BoxtelDirk HCM van Boxtel, almost 3 years ago

          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.

          0 points
          • Thomas Michael SemmlerThomas Michael Semmler, almost 3 years ago

            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.

            0 points
          • A. M. ­DouglasA. M. ­Douglas, almost 3 years ago

            So you want transition-delay:

            0 points
    • Pedro BotelhoPedro Botelho, almost 3 years ago

      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)

      0 points
  • Andy MerskinAndy Merskin, almost 3 years ago

    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

    4 points
  • Jansen Tolle, almost 3 years ago

    Excellent work! I've seen the effect that inspired this and was very curious how they achieved it.

    1 point
  • Jovana AndjelkovicJovana Andjelkovic, almost 3 years ago

    Nice!

    0 points
  • Justin Rands, almost 3 years ago

    You'll lose this effect completely on mobile. Nice though.

    0 points