TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
JQuery Fade Functions
Kannadasan G
Jun 22
2015
Code
1.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
jQuery Fade Functions:
//--- JQUERY FADE - FADE AN ELEMENT IN, OUT & TO ---//
// fade in
$(
"#DivID"
).fadeIn(1000);
// do something when animation complete
$(
"#DivID"
).fadeIn(1000,
function
() {
alert(
"Fade In Complete"
);
});
// fade out
$(
"#DivID"
).fadeOut(1000);
// do something when animation is complete
$(
"#DivID"
).fadeOut(1000,
function
() {
alert(
"Fade Out Complete"
);
});
// fade to (fades to specified opacity)
$(
"#DivID"
).fadeTo(1000, 0.25);
// do something when animation is complete
$(
"#DivID"
).fadeTo(1000, 0.25,
function
() {
alert(
"Fade To Complete"
);
});
Fade Functions
jQuery