Jquery Fare Animasyonu - Jquery Mouse Animation

Developer
Size
2,600 Kb
Views
26,312

How do I make an jquery fare animasyonu - jquery mouse animation?

Jquery Fare Animasyonu - Jquery Mouse Animation . What is a jquery fare animasyonu - jquery mouse animation? How do you make a jquery fare animasyonu - jquery mouse animation? This script and codes were developed by Ayhan ALTINOK on 13 September 2022, Tuesday.

Jquery Fare Animasyonu - Jquery Mouse Animation Previews

Jquery Fare Animasyonu - Jquery Mouse Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Jquery Fare Animasyonu - Jquery Mouse Animation </title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h3><center>Jquery Fare Animasyonu - Jquery Mouse Animation </center></h3>
<div id="animasyon"></div>
<div class="copyright"><font style="float:right; margin-right:30px;">Copyright &copy; 2013 - Ayhan ALTINOK </font>İletişim bilgileri :<font style="color:#505050"> Web Adresi:</font> www.graphicsfamily.com <font style="color:#505050"> Mail :</font> [email protected] <font style="color:#505050">Facebook: </font>www.facebook.com/ayhanaltinokesk</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Jquery Fare Animasyonu - Jquery Mouse Animation - Script Codes CSS Codes

h3{background:#101010 url(http://l1308.hizliresim.com/1d/8/r8pt1.png);color:#e5e5e5;border-bottom:solid 1px #000;margin:0px;padding:10px ; box-shadow: inset 0 0 5px #000;}
#animasyon{ border-radius:100%; box-shadow: inset 0 0 5px #101010; border:#202020 3px solid; background-image: url("http://www.fore6.com/wp-content/uploads/2011/09/henson11-hp-1g.png"); background-position: -120px -119px; background-repeat: no-repeat; height: 117px; margin: 10% auto; background-color:#000; width: 117px;
}
html,body{margin:0px;padding:0px;/*width:900px;*/background:#171717 url(http://l1308.hizliresim.com/1d/8/r8prr.png);}
.copyright{width:100%;height:auto; background-color:#171717;color:#aaa;position:fixed; bottom:0px;font: 12px Arial;padding:5px;opacity:0.4;border-top:#a00 2px solid;z-index:99999;left:0px;right:0px;}.copyright:hover{opacity:1}
/* Ayhan Altınok*/

Jquery Fare Animasyonu - Jquery Mouse Animation - Script Codes JS Codes

var aniX = null;
var aniy = null;
$(document).ready(function(){ aniX = $("#animasyon").offset().left; aniY = $("#animasyon").offset().top; $(document).mousedown(function(event){ var mousePos = new Array(event.pageX, event.pageY); interact(mousePos, ["-356px", "-475px", "-593px"]); }); $(document).mouseup(function(event){ var mousePos = new Array(event.pageX, event.pageY); interact(mousePos, ["-1px", "-120px", "-238px"]); }); $(document).mousemove(function(event) { var mousePos = new Array(event.pageX, event.pageY); interact(mousePos, ["-1px", "-120px", "-238px"]); });
});
function interact(mouseCord, aniCord){ if (mouseCord[0] < aniX && mouseCord[1] < aniY){ // Box-1 $("#animasyon").css("background-position", aniCord[0]+" 0px"); } else if (mouseCord[0] > aniX && mouseCord[0] < aniX+117 && mouseCord[1] < aniY){ // Box-2 $("#animasyon").css("background-position", aniCord[1]+" 0px"); } else if (mouseCord[0] > aniX+117 && mouseCord[1] < aniY){ // Box-3 $("#animasyon").css("background-position", aniCord[2]+" 0px"); } else if (mouseCord[0] < aniX && mouseCord[1] > aniY && mouseCord[1] < aniY+117){ // Box-4 $("#animasyon").css("background-position", aniCord[0]+" -119px"); } else if (mouseCord[0] > aniX && mouseCord[0] < aniX+117 && mouseCord[1] > aniY && mouseCord[1] < aniY+117){ // Box-5 $("#animasyon").css("background-position", aniCord[1]+" -119px"); }else if (mouseCord[0] > aniX+117 && mouseCord[1] > aniY && mouseCord[1] < aniY+117){ // Box-6 $("#animasyon").css("background-position", aniCord[2]+" -119px"); } else if (mouseCord[0] < aniX && mouseCord[1] > aniY+117){ // Box-7 $("#animasyon").css("background-position", aniCord[0]+" -237px"); } else if (mouseCord[0] > aniX && mouseCord[0] < aniX+117 && mouseCord[1] > aniY+117){ // Box-8 $("#animasyon").css("background-position", aniCord[1]+" -237px"); } else if (mouseCord[0] > aniX+117 && mouseCord[1] > aniY+117){ // Box-9 $("#animasyon").css("background-position", aniCord[2]+" -237px"); }
}
Jquery Fare Animasyonu - Jquery Mouse Animation - Script Codes
Jquery Fare Animasyonu - Jquery Mouse Animation - Script Codes
Home Page Home
Developer Ayhan ALTINOK
Username AyhanALTINOK
Uploaded September 13, 2022
Rating 3
Size 2,600 Kb
Views 26,312
Do you need developer help for Jquery Fare Animasyonu - Jquery Mouse Animation?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Ayhan ALTINOK (AyhanALTINOK) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!