How do I animate a button like in the example?

  • 0
    Hello everyone.
    I need to make a button like on this site https://www.lucidmotors.com/ , but I just can't think of solution.

    I tried replacing one element with another, but with fast repeated hovering, the same effect cannot be repeated.

    I don’t want to include libraries for one button, but if you know the right one, I’ll be glad.
    I will listen to any ideas.
    JavaScript Aria Hayes, Sep 15, 2019

  • 1 Answers
  • 0
    I don't know why in the original Convas.

    you can for example like this https://codepen.io/zFunx/pen/XRGEor

    such animations often use pseudo element animation and overflow: hidden for the parent
    Reece Hinton

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!