Friday, May 22, 2020

jQuery Logosdistort.js Plugin



Hello guys! Welcome to a new section of my tutorials on jQuery. In this tutorial post, i will be discussing about the Logosdistort.js plugin.

Logosdistort.js is a jQuery plugin that is used for a quick and easy implementation of the mouse over effects on images.

Example

Below is a simple Logosdistort.js example -

<!DOCTYPE  html  lang = "en">
<html   xmlns =  "https://www.w3.org/1999/xhtml">
     <head>
          <meta   charset =  "utf-8">
          <meta  name = "viewport"   content = "width = device-width ,   initial-scale = 1.0">          
          <title>Logosdistort.js  Example</title>

          <link  type = "text/css"   rel = "stylesheet"
               href = "https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> 
          
          <link  type = "text/css"   rel = "stylesheet"
               href = "assets/css/style.css" />
          
          <link  type = "text/css"   rel = "stylesheet"
               href = "assets/css/perspectiveRules.css" />             
     </head>

     <body>
          <div  id = "min-max-tag">
               <i  class = "fa fa-chevron-circle-left"></i>
          </div>

          <div  id = "demo1">
               <div  id = "particle-target"></div>
               <img  src = "assets/images/logo.jpg"   alt = "Logo" />
          </div>

          <script  type = "text/javascript"
               src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">
          </script>

          <script  src = "assets/js/jquery.logosDistort.min.js"></script>
          <script  src = "assets/js/jquery.particleground.min.js"></script>

          <script  type = "text/javascript">
               var  particles  =  true ,
               particleDensity ,

               options =  {
                    effectWeight :  2 ,
                    outerBuffer :  1.05 ,
                    elementDepth :  200
               };

               $( document ).ready( function( )  {

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

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

RECOMMENDED: jQuery Tagsort Plugin 

Alright guys! This is where we are wrapping it up with this tutorial. In my next tutorial post, i will be discussing about the jQuery Filer.js plugins. Feel free to ask your questions where necessary and i will attend to them as soon as possible.

If you found this tutorial helpful and interesting, kindly use the share button to share this tutorial. Follow us on our various social media platforms available to stay updated with our latest posts. Also subscribe to our newsletter to get all our tutorials delivered directly to your emails.

Thanks for reading and bye for now.
Share:

0 comments:

Post a Comment