K
K
Konstantin Kochurov2018-02-28 19:57:35
css
Konstantin Kochurov, 2018-02-28 19:57:35

How to make a button with a gradient rounded border and a transparent background?

You need to make a button.

  • rounded corners
  • in the border gradient from top to bottom from transparency 0% to 100%
  • the button must be transparent, because the background may be heterogeneous
  • on hover fill with the same gradient, and on active it is the same with less transparency
  • smooth background change by hover/active
  • button width is not constant

I want the most elegant solution, without tags nested in the button.
5a96dd109ae7a566230959.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dom1n1k, 2018-02-28
@dom1n1k

The most elegant solution is to explain to the designer that he is wrong and that he needs to be redone in a normal way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question