html - How to apply ease-in-out after cursor moves away? -


i have 6 images applied ease-in-out css. when image hovered on code works flawlessly. since applied hover , not whole elelment stops working. ease-in. wondering how ease-out well. thanks! see in action go here

css

.img {         float: left; }     #center:hover{ position: relative;         opacity: 0.5;         -webkit-box-shadow: 0px 3px 31px -6px rgba(0,0,0,0.75);         -moz-box-shadow: 0px 3px 31px -6px rgba(0,0,0,0.75);         box-shadow: 0px 3px 31px -6px rgba(0,0,0,0.75);         transition: .4s ease-in-out;         -moz-transition: .4s ease-in-out;         -o-transition: .4 ease-in-out;         -webkit-transition: .4s ease-in-out;         -ms-transition: .4 ease-in-out;         } 

html

<div class="center">         <a href="https://www.netatlantic.com/resources/industries/agencies?utm_source=netatlantic&utm_medium=web_homepage&utm_campaign=vertical&utm_content=agencies"><img id="center" src="featuredindustries/img/1.png" style="float:left; padding-left: 0px; margin: auto;" hspace="00px" alt="thumbnail1" width="311" height="311" float="left" longdesc="ad agencies"/></a>          <a href="https://www.netatlantic.com/resources/industries/high-volume-senders?utm_source=netatlantic&utm_medium=web_homepage&utm_campaign=vertical&utm_content=high-volume-senders"><img src="featuredindustries/img/2.png" alt="thumbnail2" name="center" width="311" height="311" class="img1" id="center" style="float:left" longdesc="high-volume senders" align="left" hspace="0px"/></a>          <a href="https://www.netatlantic.com/resources/industries/publishing?utm_source=netatlantic&utm_medium=web_homepage&utm_campaign=vertical&utm_content=publishers"><img id="center" src="featuredindustries/img/3.png" style="float:left" hspace="00px" alt="thumbnail1" width="311" height="311" float="left" longdesc="publishers"/></a>          </br><a href="https://www.netatlantic.com/resources/industries/politicalcampaigners?utm_source=netatlantic&utm_medium=web_homepage&utm_campaign=vertical&utm_content=political"><img src="featuredindustries/img/4.png" alt="thumbnail1" name="center" width="311" height="311" id="center" style="float:left; padding-left: 0px; margin: auto; display: block;" longdesc="political senders" hspace="00px" float="left"/></a>           <a href="https://www.netatlantic.com/resources/industries/leadcapture?utm_source=netatlantic&utm_medium=web_homepage&utm_campaign=vertical&utm_content=leadcapture"><img id="center" src="featuredindustries/img/5.png" style="float:left" hspace="00px" alt="thumbnail1" width="311" height="311" float="left" longdesc="lead-capture"/></a>          <a href="https://www.netatlantic.com/emailmarketing/email-marketing-overview"><img id="center" src="featuredindustries/img/6.png" style="float:left" hspace="00px" alt="thumbnail1" width="311" height="311" float="left" longdesc="other"/></a>     </div> 

add img (not on hover)

-webkit-box-shadow: 0px 3px 31px -6px rgba(0,0,0,0.75); -moz-box-shadow: 0px 3px 31px -6px rgba(0,0,0,0.75); box-shadow: 0px 3px 31px -6px rgba(0,0,0,0.75); transition: .4s ease-in-out; -moz-transition: .4s ease-in-out; -o-transition: .4 ease-in-out; -webkit-transition: .4s ease-in-out; -ms-transition: .4 ease-in-out; transition-timing-function: linear; 

on hover use only

position: relative; opacity: 0.5; 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

angular - DownloadURL return null in below code -