jQuery UI Highlight Effect - jQuery UI Tutorial 28

Veröffentlicht am: 03 Januar 2022
auf dem Kanal: ChidresTechTutorials
394
19

Notes for You:: jQuery UI Highlight Effect - jQuery UI Tutorial 28
hides or shows an HTML element while animating its background color.

Options:
color (default: "#ffff99")
indicates the background color used for animation.
possible values: any color

mode (default: "effect")
indicates whether to hide , show or just apply the effect to an HTML element
possible values: hide, show, effect

1. Create a new HTML document with basic HTML document structure code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Highlight Effect</title>
</head>
<body>
</body>
</html>

2. Link the necessary jQueryUI libray files to the HTML document
<link href="jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
<script src="jquery-ui/external/jquery/jquery.js" type="text/javascript"></script>
<script src="jquery-ui/jquery-ui.min.js" type="text/javascript"></script>

3. Create HTML element:
<p id="firstp">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using LoremIpsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use LoremIpsum as their default model text, and a search for 'loremipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>

4. Select the HTML element using jQuery selector, call jQuery UI effect function on it
<script type="text/javascript">

$("#firstp").effect("highlight", {color:"pink", mode:"hide"}, 2000, function(){
$("#firstp").effect("highlight", {color:"pink", mode:"show"}, 2000);
});

</script>

Notes:
replace < with less-than symbol.
replace > with greater-than symbol.

=========================================

Follow the link for next video:
jQueryUI Tutorial 29 - jQueryUI Puff Animation Effect
   • jQuery UI Puff Effect - jQuery UI Tut...  

Follow the link for previous video:
jQueryUI Tutorial 27 - jQueryUI Fold Animation Effect
   • jQuery UI Fold Effect - jQuery UI Tut...  

=========================================


Auf dieser Seite können Sie das Online-Video jQuery UI Highlight Effect - jQuery UI Tutorial 28 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer ChidresTechTutorials 03 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 394 Mal angesehen und es wurde von 19 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!