Guest User

Untitled

a guest
Jan 4th, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.34 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  5. <head>
  6.     <title>BLUR TEST</title>
  7.     <style type="text/css">
  8.         html, body {
  9.             overflow: hidden;
  10.             margin: 0px;
  11.             padding: 0px;
  12.             width: 100%;
  13.             height: 100%;
  14.             background-color: #000;
  15.         }
  16.         #blur {    
  17.             overflow: hidden;
  18.             position: absolute;
  19.             top: 0;
  20.             left: 0;
  21.             width: 100%;
  22.             height: 100%;
  23.             background-image: url('https://media.tenor.co/images/a9e88640de8aa6c08a44d45a2e758961/raw');
  24.             background-size: 100%;
  25.             background-repeat: no-repeat;
  26.             background-position: center;
  27.  
  28.             /* PERFORMANCE ISSUE HERE: */
  29.             -webkit-filter: blur(100px);
  30.             -moz-filter: blur(100px);
  31.             -o-filter: blur(100px);
  32.             -ms-filter: blur(100px);
  33.             filter: blur(100px);
  34.  
  35.             }
  36.        
  37.         #noblur {      
  38.             overflow: hidden;
  39.             position: absolute;
  40.             top: 0;
  41.             left: 0;
  42.             width: 50%;
  43.             height: 50%;
  44.             background-image: url('https://media.tenor.co/images/a9e88640de8aa6c08a44d45a2e758961/raw');
  45.             background-size: contain;
  46.             background-repeat: no-repeat;
  47.             background-position: center;
  48.         }
  49.     </style>
  50. </head>
  51. <body>
  52.  
  53.     <div id="blur"></div>
  54.     <div id="noblur"></div>
  55.  
  56. </body>
  57. </html>
Advertisement
Add Comment
Please, Sign In to add comment