Guest User

Untitled

a guest
Oct 16th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. .my-class{
  2. will-change: 'opacity, transform'
  3. }
  4. .my-class:hover{
  5. opacity: 0.5
  6. }
  7. .my-class:active{
  8. transform: rotate(5deg);
  9. }
  10.  
  11. .my-class{
  12. ...
  13. }
  14. .my-class:hover{
  15. will-change: 'opacity'
  16. opacity: 0.5
  17. }
  18. .my-class:active{
  19. will-change: 'transform'
  20. transform: rotate(5deg);
  21. }
  22.  
  23. will-change: transform, opacity;
  24.  
  25. will-change: all;
  26.  
  27. .potato:hover {
  28. will-change: opacity;
  29. opacity:1;
  30. }
  31.  
  32. .parent:hover .change{
  33. will-change: opacity;
  34. }
  35. .change:hover{
  36. opacity: .5;
  37. }
  38.  
  39. .accelerate {
  40. -webkit-transform: translate3d(0, 0, 0);
  41. }
Add Comment
Please, Sign In to add comment