html - Make image ignore color animation in css -


i have html code:

<a href="(link)" target="_blank"><img src="(image source)" title="click go website!" style="position:fixed;top:10px;left:10px;z-index:999"/></a> 

and here css code:

a {  color: inherit;  text-decoration: underline; -webkit-animation: hue 60s infinite linear; }  a:hover { color: #f35626; } 

but want make image (in html code above) not use css code shown above because css used other parts of site. know how?

thanks.

you can put class on image link , filter out in css

<a class="imagelink" href="(link)" target="_blank"><img src="(image source)" title="click go website!" style="position:fixed;top:10px;left:10px;z-index:999"/></a> 

css:

a {     color: inherit;     text-decoration: underline; }  a:not(.imagelink) {     -webkit-animation: hue 60s infinite linear; }  a:hover {     color: #f35626; } 

Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -