solielios

Fixed slide hover! ♡

Sep 19th, 2021 (edited)
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <style>
  2. @font-face {
  3. font-family: ink;
  4. src: url(https://dl.dropbox.com/s/tyhvew6jpuzr8zm/BubblegumInk-Regular.ttf);
  5. }
  6.  
  7. @font-face {
  8. font-family: fingerlinger;
  9. src: url(https://dl.dropbox.com/s/v5ks4dcr1o7k9ew/fingerlinger.ttf);
  10. }
  11.  
  12.  
  13. </style>
  14.  
  15. <!-- CR will be appericiated @Solielios on insta, not necessary though :) replace the "fixed" with "absolute" for the position of this to be modified!! -->
  16.  
  17. <body>
  18. <div id="oneout"><span class="onetitle">
  19.  
  20. SLIDE TITLE
  21.  
  22. </span><div id="oneout_inner">
  23. <center>
  24.  
  25. SLIDE TEXT GOES IN HERE
  26.  
  27. <br></center></div></div>
  28. </body>
  29.  
  30. <style>
  31.  
  32. #oneout {
  33. position:fixed;
  34. top:64px;left:1px;
  35. text-align:center;
  36. -webkit-transition-duration:1s;-moz-transition-duration:1s;-o-transition-duration:1s;transition-duration:1s;
  37. z-index:99999999; }
  38.  
  39. #oneout_inner {
  40. position:fixed;
  41. width:230px; height:auto;
  42. top:40px; left:-250px;
  43. padding:10px;
  44. background:#FFFFFF; /* change #FFFFFF; to transparent; if you want the background of the slide out tab to be transparent and not white*/
  45. -webkit-transition-duration:1s;-moz-transition-duration:1s;-o-transition-duration:1s;transition-duration:1s;
  46. text-align:left;
  47. z-index:99999999;
  48. font-family: fingerlinger; }
  49.  
  50. #oneout:hover {
  51. left:250px;
  52. z-index:99999999; }
  53.  
  54. #oneout:hover #oneout_inner {
  55. left:0px;
  56. z-index:99999999; }
  57.  
  58. .onetitle {
  59. position:absolute;
  60. left:-11px; top:3px;
  61. font-family:ink; font-size:16px;
  62. -webkit-transform:rotate(-90deg); -moz-transform:rotate(-90deg); -ms-transform:rotate(-90deg); -o-transform:rotate(-90deg); transform:rotate(-90deg);
  63. z-index:99999999; }
  64.  
  65. </style>
Add Comment
Please, Sign In to add comment