How to make a play button with pseudoclasses?
How to make a play button with pseudoclasses? Like '>' icon. For thumbnail of a video play
3 Replies
you can do it like this
or like this
and you can use it like this
And you can of course use this in a pseudo element too
@tok124 thanks a lot
is usually better to use library for that icon?
above code is cool but seems a bit much for it
you don't actually need this much code, the reason it's this much code is because i have made it so you can choose direction, but if you only want arrow to right, the the code could be reduced by a lot.
But yeah, i would rather use font-awesome to make arrow