K
K
kombat0032018-09-16 20:05:29
css
kombat003, 2018-09-16 20:05:29

How to make a gradient border button with animation?

There is a button, you need to make a gradient border from its two corners, when hovering, the stroke should become solid. I did it this way -
But there are two problems (both are visible on the gif) -

  1. In chrome, the animation is jerky
  2. For some reason, the bottom border is not always displayed
5b9e8c84dc1ab368895920.gif
How can they be fixed, or perhaps there is some more correct way to implement a similar effect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita-Fast, 2018-09-17
@Nikita-Fast

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question