CSS FADE EFFECTS TO FADEIN AN ELEMENT

View previous topic View next topic Go down

CSS FADE EFFECTS TO FADEIN AN ELEMENT

Post by jamied_uk on 18th May 2016, 15:32

Code:
#date_time {
  opacity:0;
  transition:opacity 0.5s linear;
background-color:#000099;
bottom:0;
right:0;
}
#date_time.visible {
width:300px;
right:0px;
-moz-transition:all 1.3s ease;
-webkit-transition:all 1.3s ease;
-o-transition:all 1.3s ease;
-ms-transition:all 1.3s ease;
display:block;
visibility: display;
opacity:1;
display:block;
}


Jquery

Code:
$('#date_time').toggleClass('visible');

jamied_uk
Admin

Posts : 1973
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum