Advertisement
Guest User

Untitled

a guest
Sep 1st, 2016
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.80 KB | None | 0 0
  1. <style>
  2.     #imageA {
  3.  
  4.         animation:slide 5s 99;
  5.     }
  6.     #imageB {
  7.         animation:myAnim 0.1s 10;
  8.     }
  9.     @keyframes slide {
  10.         from {
  11.             transform: translateX(300%);
  12.             background-color:rgb(0, 255, 0);
  13.         }
  14.         to {
  15.             transform: translateX(-300%);
  16.             background-color:rgb(255, 0, 0);
  17.         }
  18.     }
  19.     @keyframes myAnim {
  20.         from {
  21.  
  22.             transform:scale (1);
  23.             background-color:red;
  24.         }
  25.         to {
  26.               transform: scale(2);    
  27.       background-color:blue;
  28.       transform: translateX(-300%);
  29.         }
  30.     }
  31. </style>
  32. <img id="imageA" src="/file/db/thang.type/529ab1a24b67a988ad000002/portrait.png">
  33. <img id="imageB" src="/file/db/thang.type/52cee45a76ebd5196b00003a/portrait.png">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement