Monday 23 April 2018

CSS - Simple Hover Effects Button

You can add some animation that capture user attention when they hovering buttons (may applied on cards)

Reference :

https://codepen.io/giana/pen/BZaGyP?editors=1100


Inherit "keyword" css reference


<!DOCTYPE html>
<html>
<head>
<style>
span {
    color: blue;
    border: 1px solid black;
}
.extra span {
    color: inherit;
}
</style>
</head>
<body>

<div>
Here is <span>a span element</span> which is blue, as span elements are set to be.
</div>

<div class="extra" style="color:green">
Here is <span>a span element</span> which is green, because it inherits from its parent.
</div>

<div style="color:red">
Here is <span>a span element</span> which is blue, as span elements are set to be.
</div>

</body>
</html>

No comments:

Post a Comment