Guest User

Untitled

a guest
Aug 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Is there a way to create a fade-in/fade-out effect using CSS 3 only?
  2. .box{
  3. opacity: 0.0;
  4. -webkit-transition: 0.5s all;
  5. -moz-transition: 0.5s all;
  6. }
  7.  
  8. .box:hover{
  9. opacity: 1.0;
  10. }
  11.  
  12. div
  13. {
  14. transition: width 2s;
  15. -moz-transition: width 2s; /* Firefox 4 */
  16. -webkit-transition: width 2s; /* Safari and Chrome */
  17. -o-transition: width 2s; /* Opera */
  18. }
Add Comment
Please, Sign In to add comment