Advertisement
1xptolevitico69

Animation with Css Before selector

Aug 23rd, 2022
908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.84 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.   <!-- Global site tag (gtag.js) - Google Analytics -->
  6.   <script async="" src="https://www.googletagmanager.com/gtag/js?id=G-420XFJRS1M"></script>
  7.   <script>
  8.     window.dataLayer = window.dataLayer || [];
  9.  
  10.     function gtag() {
  11.       dataLayer.push(arguments);
  12.     }
  13.     gtag('js', new Date());
  14.     gtag('config', 'G-420XFJRS1M');
  15.   </script>
  16.   <link rel="shortcut icon" href="https://1xpto.netlify.app/items/favicon.gif" type="image/x-icon">
  17.   <meta charset="UTF-8">
  18.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  19.   <meta name="keywords" content="1xpto">
  20.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  21.   <title>1xpto</title>
  22.   <style>
  23.     .topnave {
  24.       position: absolute;
  25.       left: 0;
  26.       top: 10px;
  27.       width: 100%;
  28.     }
  29.  
  30.     .topnave a {
  31.       color: red;
  32.       margin: 0 5px;
  33.       text-decoration: underline;
  34.       font-family: verdana;
  35.       font-weight: 900;
  36.       font-size: 3vw;
  37.     }
  38.  
  39.     .avatar {
  40.       width: 100px;
  41.       display: block;
  42.       margin: 20px auto;
  43.       border-radius: 50%;
  44.       border: 4px double navy;
  45.     }
  46.  
  47.     body {
  48.       margin: 0;
  49.     }
  50.  
  51.     .top {
  52.       width: 100%;
  53.       height: 100vh;
  54.       border: 0;
  55.       outline: 0;
  56.       background-color: white;
  57.     }
  58.  
  59.     #input {
  60.       box-sizing: border-box;
  61.       height: 50px;
  62.       width: 50%;
  63.       font-size: 2vw;
  64.       padding: 0 10px;
  65.       outline: 0;
  66.       border: 0;
  67.       background-color: red;
  68.       border-radius: 10px 0 0 10px;
  69.     }
  70.  
  71.     .search {
  72.       outline: 0;
  73.       height: 50px;
  74.       font-size: 2vw;
  75.       width: 150px;
  76.       text-align: center;
  77.       border: 0;
  78.       color: red;
  79.       background-color: red;
  80.       color: white;
  81.       border-radius: 0 10px 10px 0;
  82.     }
  83.  
  84.     #input::placeholder {
  85.       color: white;
  86.     }
  87.  
  88.     h1 {
  89.       font-size: 3vw;
  90.       font-family: verdana;
  91.     }
  92.  
  93.     @media all and (orientation:portrait) and (max-width:425px) {
  94.       h1 {
  95.         font-size: 9vw;
  96.       }
  97.  
  98.       #input {
  99.         width: 100%;
  100.         height: 40px;
  101.         font-size: 16px;
  102.         border-radius: 10px;
  103.       }
  104.  
  105.       .search {
  106.         font-size: 16px;
  107.         height: 40px;
  108.         margin: 5px 0;
  109.         width: 150px;
  110.         border-radius: 10px;
  111.       }
  112.  
  113.       .topnave a {
  114.         color: red;
  115.         text-decoration: underline;
  116.         font-family: verdana;
  117.         font-weight: 900;
  118.         font-size: 20px;
  119.       }
  120.     }
  121.  
  122.     @media all and (orientation:landscape) and (max-width:768px) {
  123.       .avatar {
  124.         display: none;
  125.       }
  126.  
  127.       h1 {
  128.         font-size: 5vw;
  129.       }
  130.  
  131.       #input {
  132.         width: 90%;
  133.         font-size: 4vw;
  134.         border-radius: 10px;
  135.       }
  136.  
  137.       .search {
  138.         font-size: 4vw;
  139.         margin: 5px 0;
  140.         width: 150px;
  141.         border-radius: 10px;
  142.       }
  143.  
  144.       .topnave a {
  145.         color: red;
  146.         text-decoration: underline;
  147.         font-family: verdana;
  148.         font-weight: 900;
  149.         font-size: 5vw;
  150.       }
  151.     }
  152.   </style>
  153. </head>
  154.  
  155. <body>
  156.   <audio id='audio' loop src='https://1xpto.netlify.app/audio/mediauto.mp3'></audio>
  157.  
  158.   <button class='top'>
  159.  
  160.     <div class='topnave'>
  161.       <a href='https://1xpto.netlify.app/'>Site</a>
  162.       <a href='https://1xpto.netlify.app/media/'>Media</a>
  163.       <img class='avatar' src='https://1xpto.netlify.app/pic/moi.jpg' />
  164.     </div>
  165.  
  166.     <h1>Organic Search</h1>
  167.     <input id='input' type='text' placeholder='Animation with Css Before selector' readonly />
  168.     <input class='search' onclick='foo()' type='button' value='Search' />
  169.  
  170.   </button>
  171.  
  172.   <script>
  173.     function foo() {
  174.       window.open('https://1xpto.netlify.app/posts/animation%20with%20css%20before%20selector/local/index.html');
  175.       audio.play();
  176.     }
  177.   </script>
  178. </body>
  179.  
  180. </html>
  181.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement