Programming
Python
R
Java
C
C++
C#
WEB
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
MORE
Examples1
Python
GO
R
Java
C
C++
C#
Examples2
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Seo Tools
Code Minifier
Code Beautifier
Language Compiler
Misc Tools
File Converter
References
C
C++
Python
Java
PHP
JavaScript
Examples
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Home
About
Contact
JetPack
Multi Themes-->>
Code it ALL
Scroll TOP
jQuery animate() Single Animation - CodeGK
Δ Jquery Examples
Selectors
Element Selector in jQuery
Class Selector in jQuery
Id Selector in jQuery
Set
jQuery set html()
jQuery set text()
jQuery set val()
jQuery set attr()
Ancestors
jQuery parent()
jQuery parents()
jQuery parentsUntil()
Get
jQuery get html()
jQuery get text()
jQuery get val()
jQuery get attr()
Slide
jQuery slideDown()
jQuery slideUp()
jQuery slideToggle()
Events
jQuery click()
jQuery dblclick()
jQuery mouseenter()
jQuery mouseleave()
jQuery hover()
jQuery focus()
jQuery blur()
jQuery on()
Hide_and_show
jQuery Hide
jQuery Show
jQuery Toggle
Remove
jQuery remove()
jQuery empty()
Animate
jQuery animate() Single Animation
jQuery animate() Functional Animation
jQuery animate() Pre-Defined Attribute Animation
Css_classes
jQuery addClass()
jQuery removeClass()
jQuery toggleClass()
jQuery css() Part1
jQuery css() Part2
Dimensions
jQuery width()
jQuery height()
jQuery innerWidth()
jQuery innerHeight()
jQuery outerWidth()
jQuery outerHeight()
Fade
jQuery fadeOut()
jQuery fadeIn()
jQuery fadeToggle()
jQuery fadeTo()
Add
jQuery append()
jQuery prepend()
jQuery after()
jQuery before()
♦ jQuery animate() Single Animation
♣ Example1: jQuery animate() Single Animation
Below shown is example of sliding box to right with increasing size and also decreasing the opacity.
In this example, .
Example
Input:
Run CODE
Reload Code
Copy Code
Begin Animation
By default, the specified HTML elements have a static position. To apply animation define the next state static attributes(such as position,color).
Also Note to set position to absolute in initial state.
Output:
Animate
jQuery animate() Single Animation