Logosdistort.js

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"><link rel ="stylesheet" 
     href ="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"&gt;&lt;link href ="assets/css/style.css" rel ="stylesheet"/&gt;&lt;link href ="assets/css/perspectiveRules.css" rel ="stylesheet"/&gt;&lt;/head&gt;&lt;body&gt;&lt;div id ="min-max-tag"&gt;&lt;i class="fa fa-chevron-circle-left"&gt;&lt;/i&gt;&lt;/div&gt;&lt;div id ="demo1"&gt;&lt;div id ="particle-target"&gt;&lt;/div&gt;&lt;img alt ="logo" src ="assets/images/logo.png"/&gt;&lt;/div&gt;&lt;script 
     src ="https://www.tutorialspoint.com/jquery/jquery-3.6.0.js"&gt;&lt;/script&gt;&lt;script src ="assets/js/jquery.logosDistort.min.js"&gt;&lt;/script&gt;&lt;script src ="assets/js/jquery.particleground.min.js"&gt;&lt;/script&gt;&lt;script&gt;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 &lt;13000){
              particleDensity =13000;}elseif(particleDensity &gt;20000){
              particleDensity =20000;}return$('#particle-target').particleground({
              dotColor:'#1ec5ee',
              lineColor:'#0a4e90',
              density: particleDensity.toFixed(0),
              parallax:false});}});&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</pre>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *