Advertisement
1xptolevitico69

The :hover effect

May 29th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <style>
  8.       @media all and (min-width: 1200px) and (max-width: 2000px) {  
  9. span:hover{  font-size:100px;font-family:Segoe Script;       }
  10. }
  11.  
  12. span {  font-size:30px;      }      
  13. </style>
  14. </head>
  15. <body>
  16.  
  17.  
  18.  
  19. <span id='sp'>Let's get BIG</span>
  20.  
  21. <script>
  22.  
  23. sp.onmouseover=()=>{
  24. if(window.innerWidth>1200){
  25. sp.innerHTML="Let's get BIG and CRAZY";
  26. }
  27. }
  28. sp.onmouseout=()=>{
  29. if(window.innerWidth>1200){
  30. sp.innerHTML="Let's get BIG";
  31. }
  32. }
  33.  
  34. </script>
  35. </body>
  36. </htm>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement