Advertisement
dnwmfilms

↳ ❝ [rotate & saturate when hover] ¡! ❞

Nov 6th, 2021
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <style>
  2. .pp {
  3. overflow: hidden;
  4. margin: auto;
  5. min-width: 240px;
  6. max-width: 240px;
  7. width: 100%;
  8. }
  9.  
  10. .pp img {
  11. transition: all 0.5s;
  12. box-sizing: border-box;
  13. max-width: 100%;
  14. }
  15.  
  16. .pp:hover img {
  17. transform: scale(1.3) rotate(12deg);
  18. webkit-filter: blur(1px); /* Chrome, Safari, Opera */
  19. filter: blur(1px);
  20.  
  21. display: inline-block;
  22.  
  23. width:100%;
  24. height:auto;
  25.  
  26.  
  27. border: 3px double black;
  28. overflow: hidden; /* clip the excess when child gets bigger than parent */
  29. }
  30. .pp img {
  31. display: block;
  32. width:100%;
  33. height:auto;
  34. -webkit-filter: grayscale(100%);
  35.  
  36. }
  37.  
  38.  
  39. .pp:hover img {
  40. -webkit-filter: grayscale(0%);
  41.  
  42.  
  43. }
  44.  
  45. </style>
  46.  
  47. <figure class="pp">
  48. <img src="https://data.whicdn.com/images/356896175/original.jpg"/>
  49. </figure> <!---you can cut this part off if you have pro plus!--->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement