Advertisement
teenagegoths

horizontal reveal-hover menu

Sep 14th, 2021 (edited)
1,391
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--
  2. for carrd pro: put the image and the text in a container (vertically)
  3. container class: whee
  4. image class: spreadimage
  5. text class: spreadtext
  6.  
  7. for others: just use <div class="whee"><div class="spreadimage"></div><div class="spreadtext"></div></div>
  8. -->
  9.  
  10. <style>
  11. .whee {transform:scale(0.85,0.85);}
  12.  
  13. .whee {position:relative; right:0em; left:0em; transition:all 1s;}
  14.  
  15. .spreadtext {height:15em; width:15em;
  16. position:relative; top:-8.25em; left:0em;
  17. overflow-y: scroll; transition:1s;}
  18.  
  19. .spreadimage {height:15em; width:15em; top:7.5em; z-index:99999;
  20. position:relative; right:0em;
  21. overflow-y: auto; transition:1s;}
  22.  
  23. .whee:hover .spreadimage {position:relative; right:7.5em; transition:1s;}
  24.  
  25. .whee:hover .spreadtext {position:relative; left:7.5em; transition:1s;}
  26.  
  27. </style>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement