Advertisement
Second_Fry

Chromium bug

Apr 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.74 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <head>
  3. <style>
  4. .container {
  5.   position: absolute;
  6.   width: 100vw;
  7.   height: 100vh;
  8.   top: 0;
  9.   left: 0;
  10.   clip-path: polygon(25% 0,100% 0,100% 100%,75% 100%);
  11. }
  12. .container:before {
  13.   content: "";
  14.   position: absolute;
  15.   display: block;
  16.   width: 100%;
  17.   height: 100%;
  18.   top: 0;
  19.   left: 0;
  20.   transition: opacity .3s ease-in-out;
  21.   opacity: 0.1;
  22.   background: linear-gradient(51.34deg,#dfd8c9 50%,#f2efe9 67%) 0 0;
  23.   border: 1px solid #f00;
  24. }
  25. .container:hover {
  26.   left: 1%;
  27. }
  28. .container:hover:before {
  29.   opacity: 1;
  30. }
  31. .content {
  32.   position: absolute;
  33.   right: 50px;
  34.   top: 50%;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <div class="container">
  40.   <div class="content">
  41.     Lorem Ipsum Dolor Amet
  42.   </div>
  43. </div>
  44. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement