Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Wednesday, August 28, 2019

Demonstration of fadeIn Method of jQuery

Demonstration of fadeIn Method of jQuery

ANIMATION

Code

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").mouseenter(function(){
    $("#div1").fadeIn();
    $("#div2").fadeIn("slow");
    $("#div3").fadeIn(1000);
    $("#div4").fadeIn(2000);
    $("#div5").fadeIn(3000);
  });
 
  $("button").mouseleave(function(){
    $("#div1").fadeOut();
    $("#div2").fadeOut("slow");
    $("#div3").fadeOut(1000);
    $("#div4").fadeIn(2000);

    $("#div5").fadeIn(3000);
  });

});
</script>
<style>
body{
margin: 50px;
}
#button1{
  background-color: #f44336;;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

</style>
</head>
<body>

<h1>Demonstrate fadeIn() with different parameters.</h1>

<button id="button1">Hover the mouse to fade in boxes (move mouse over me and then move out )</button><br><br>


<div id="div1" style="width:90px;height:90px;display:none;background-color:#DD4132;">
</div><br>
<div id="div2" style="width:90px;height:90px;display:none;background-color:#79C753;">
</div><br>
<div id="div3" style="width:90px;height:90px;display:none;background-color:#FA9A85;">
</div><br>
<div id="div4" style="width:90px;height:90px;display:none;background-color:#F96714;">
</div><br>
<div id="div5" style="width:90px;height:90px;display:none;background-color:#FAE03C;">
</div>


</body>
</html>


Sunday, August 13, 2017

jQuery Presentation


jQuery Basics



What is Jquery?

Fast and ConsiseJavascriptLibrary created by John Resigin 2006

jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax. It is free, open-source software using the permissive MIT License. As of May 2019, jQuery is used by 73% of the 10 million most popular websites. Web analysis indicates that it is the most widely deployed JavaScript library by a large margin, having 3 to 4 times more usage than any other JavaScript library


Create a Digital Clock using HTML and JavaScript

Create a Digital Clock using HTML and JavaScript  <! DOCTYPE html> < html > < head > <...

Followers

Search This Blog

Popular Posts