Advertisement
n3ito

[code] saturate on hover

May 21st, 2022
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None
  1. <style>
  2. #whitespace {
  3. display: inline-block;
  4.  
  5. width:20%;
  6. height:auto;
  7.  
  8. border: 3px double black;
  9. overflow: hidden; /* clip the excess when child gets bigger than parent */
  10. }
  11. #whitespace img {
  12. display: block;
  13. width:100%;
  14. height:auto;
  15.  
  16. }
  17.  
  18. #whitespace:hover img {
  19. filter: saturate(170%);
  20.  
  21. </style>
  22.  
  23. <div id="whitespace"><img src="imgurl"></div>
Advertisement
RAW Paste Data Copied
Advertisement