X
X
Xtray2016-07-21 09:13:35
css
Xtray, 2016-07-21 09:13:35

Is it possible to make such a button with html+css?

dc11b00c12a347b29785e5e258a24584.png
The button is filled with a gradient, the frame is translucent. On hover and click, the gradient changes.
Is it possible to make the exact same button using html+css?
I succeeded only with the help of svg, but, unfortunately, this solution turned out to be not without bugs, for example, it was not cross-browser.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
GreatRash, 2016-07-21
@Xtray

No. Cross browser, SVG only. I propose a graceful degradation approach: that is, SVG for modern browsers, and a picture for old ones.

I
iBird Rose, 2016-07-21
@iiiBird

  • make a frame using box-shadow
  • Gradient via www.colorzilla.com/gradient-editor
  • triangle on the right through: after (the old-fashioned way with a finished picture, or make a triangle on css through border)

A
A person from Kazakhstan, 2016-07-21
@LenovoId

codepen.io/Geyan/pen/ZOxJJL?editors=110 but I don’t know how to screw in the gravitant, in principle it doesn’t look like it, but it fits

D
dijavu, 2016-07-28
@dijavu

codepen.io/anon/pen/BzVgzQ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question