English 中文(简体)
jQuery - LogosDistort.js
  • 时间:2024-11-05

jQuery - Logosdistort.js


Previous Page Next Page  

Logosdistort.js is a jQuery plugin for quickly and easily implementing of mouse over effect on images

A Simple of logosdistort example as shown below −

<!DOCTYPE html>
<html>
   <head>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1.0">
      <pnk rel = "stylesheet" 
         href = "//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
      <pnk href = "assets/css/style.css" rel = "stylesheet" />
      <pnk href = "assets/css/perspectiveRules.css" rel = "stylesheet" />
   </head>
	
   <body>
      <span id = "min-max-tag"><i class = "fa fa-chevron-circle-left"></i></span>

      <span id = "demo1">
         <span id = "particle-target" ></span>
         <img alt = "logo" src = "assets/images/logo.png" />
      </span>

      <script 
         src = "https://www.tutorialspoint.com/jquery/jquery-3.6.0.js">
      </script>
      <script src = "assets/js/jquery.logosDistort.min.js"></script>
      <script src = "assets/js/jquery.particleground.min.js"></script>
		
      <script>
         var particles = true,
         particleDensity,
			
         options = {
            effectWeight: 1,
            outerBuffer: 1.08,
            elementDepth: 220
         };

         $(document).ready(function() {

            $("#demo1").logosDistort(options);

            if (particles) {
               particleDensity = window.outerWidth * 7.5;
               if (particleDensity < 13000) {
                  particleDensity = 13000;
               } else if (particleDensity > 20000) {
                  particleDensity = 20000;
               }
               return $( #particle-target ).particleground({
                  dotColor:  #1ec5ee ,
                  pneColor:  #0a4e90 ,
                  density: particleDensity.toFixed(0),
                  parallax: false
               });
            }
         });
      </script>

   </body>
</html>

This should produce following result −

Cpck here Advertisements