In place of the animate you can also use jquery function .fadeTo(), it's also a bit shorter. And the first animate which set the images to an opacity, you could also use the .css() function so you don't get that tacky fade out when you load the page.
Mine also don't work, I made the code exactly as you did, but my images only show up half transparent, not animated, and they won't get normal. Maybe the problem is the jQuery, but I dont think so. this is my code: $(document).ready(function(){ $('img').animate({ opacity:.5 }); $('img').hover(function(){ $('this').stop().animate({opacity:1}, 'fast'); }, function(){ $('this').stop().animate({opacity:.5}, 'slow'); }); });
Excellent job, Nathaniel - your videos have been a huge help. Smart and detailed in all the right ways. I managed to duplicate everything in my own html file. You may have said this and it passed by me, but this jquery effect only works on images rollovers. I placed a couple of non-rollover images and they weren't affected, just the rollovers. I love the effect, but is it intended to work only on image rollovers?
Hey Tutvid, I'm having issues with getting this to work. No errors or anything like that, it's acting like Jquery isn't accessing any tags. I'm working from your website from your CSS tutorial. I'm not sure if it's because of all the div tags or what. But it works just fine when I make anew HTML doc. Could you help? Should I upload my html page?
Hi, what if I have used a AVP Div but placed an image inside of that which is linked, how would I change the code as I have "div id" then the following apDiv I have used. Thanks!
I love how well you explain every thing that you do. Makes it so easy to follow. Just enjoy watching your videos and learning. Keep up the good work !
Great Tutorial! Haven't seen this tutorial done that way, but it works thats the main thing. I would personally use fadeTo(); for changing opacity, as I would usually only use animate(); if I was moving elements as well. Nevertheless thats the best thing about web development there are so many different ways of doing things :)
@heerolim You can do this with jQuery if you want you can google this sentence 'Giving a tooltip a fixed position' and it should the 3rd link called "jQuery Tooltip | Easy jQuery Tooltip with CSS & jQuery | Tooltip". If that is what you're looking for :).
@tutvid i'm starting at javascript and i would like to know how to send a string from a textbox to li tag inside my div. i can send u the code.thanks. Please reply.
Is it possible to replace "slow" and "fast" by "random" ? because i think that would make a pretty interesting effect.
also is it possible to combine this with for example a light box ?
please reply i would really like to know
thanks
MFJdesigns.
MFJdesigns 1 week ago
more jQuery tutorials please! this was an excellent tutorial that was explained perfectly and I would like to see more of these.
ReyesFWS 1 week ago
In place of the animate you can also use jquery function .fadeTo(), it's also a bit shorter. And the first animate which set the images to an opacity, you could also use the .css() function so you don't get that tacky fade out when you load the page.
Spike90 3 weeks ago
Thank you very much for this!
TheRhoads6 3 weeks ago
Mine also don't work, I made the code exactly as you did, but my images only show up half transparent, not animated, and they won't get normal. Maybe the problem is the jQuery, but I dont think so. this is my code: $(document).ready(function(){ $('img').animate({ opacity:.5 }); $('img').hover(function(){ $('this').stop().animate({opacity:1}, 'fast'); }, function(){ $('this').stop().animate({opacity:.5}, 'slow'); }); });
What did I wrong?
Atskeloeloe 1 month ago
Mine dont even work, can you send me the code to copy and paste
Morganhesketh 1 month ago
How can you add on a lightbox effect to each photo? Thanks
witch1944 1 month ago
This has been flagged as spam show
I just start using dreamweaver and this tut (and the previous one) was really useful to me. Thanks and keep up good work :)
milan91bg 1 month ago
Comment removed
milan91bg 1 month ago
Great Video, How can we add sound to the hover and also a link? Thanks
RosettesSpain 2 months ago
what do you do if you just want it to do it to certain images?
Chris11Caz 2 months ago
I followed everything step-by-step. Is the code different for 1.7.1?
smokenfly514 3 months ago
Comment removed
ZALoROSTAM 2 months ago
@smokenfly514 Yes ofc it is dont you know anything about coding.
THILENfilms 2 months ago
@THILENfilms actually it's not; I got it to work. don't know if you're trolling or not..
smokenfly514 2 months ago
Excellent job, Nathaniel - your videos have been a huge help. Smart and detailed in all the right ways. I managed to duplicate everything in my own html file. You may have said this and it passed by me, but this jquery effect only works on images rollovers. I placed a couple of non-rollover images and they weren't affected, just the rollovers. I love the effect, but is it intended to work only on image rollovers?
Thanks!
sdweaver2008 3 months ago in playlist Dreamweaver
dude you're great!!! Keep doin!!!!
amonxxx2 3 months ago
my code is identical to yours, yet i get a syntax error. Any ideas?
scottafc1 3 months ago
u sir, are a LEGEND
nemesissa1 3 months ago
@nemesissa1 No Jimmy Henrix was a ledgend
THILENfilms 2 months ago
Thanks, would you happen to have a tutorial for a fading rollover button that fades from one state to another?
lgadwords 4 months ago
Excellent jquery tutorial with nice step by step detail explanation
I am beginner of this jquery but after watching your jquery tutorials I learn so many new things about jquery and I am also using on my web design
Thanks so much tutvid
Thanks so much youtube to connect us
keep up good work
God Bless you :-)
tirathmistry 4 months ago
pointless to use jQuery, when you can do the samething with a lot less css...
AnugaSE 5 months ago
you did your little animation in a horrible fashion.. you should have set the opac with .css() on dom ready, then used fadeTo() inside the hover...
nicktheandroid 6 months ago
i just can say...
AWSOME
jbriz506pz 6 months ago
very well explained tutorial....Tutvid , Nataniel makes it sound so easy for this looks easy and is fun to to.....
lillkutty007 7 months ago
Never mind, it was a lightbox conflict. I managed to fix it, great tutorial by the way. Glad to have you back.
TheKnightMedia 7 months ago
Hey Tutvid, I'm having issues with getting this to work. No errors or anything like that, it's acting like Jquery isn't accessing any tags. I'm working from your website from your CSS tutorial. I'm not sure if it's because of all the div tags or what. But it works just fine when I make anew HTML doc. Could you help? Should I upload my html page?
TheKnightMedia 7 months ago
nice buddy that was really awsum thnks
XhizorsmAs 7 months ago
dude you're the best
dreamweaverbuilder 7 months ago
Man that was a great tutorial, props for stepping through it properly :D
madman13669 7 months ago
you could even add it to an external js file to save space on your html file.
jamesrdolan 7 months ago
thank you!
iownslaves 7 months ago
quick question tutvid, how did you change your code view background to the dark colors & how did you get your tags to look like the color they are
tsola2002 7 months ago
I watched like half of this and then realized.. "wait.. I don't know JavaScript.. why am I watching this?"
EmberflyLayouts 7 months ago
Hi thanks for the tutorial you are very talented and now I have a cool effect on my wiki! BTW I gave some credit to you... =D Thanks again, Abz
LISAB68 7 months ago
This has been flagged as spam show
Hi, what if I have used a AVP Div but placed an image inside of that which is linked, how would I change the code as I have "div id" then the following apDiv I have used. Thanks!
djcds 7 months ago
Comment removed
djcds 7 months ago
@blapgat i know, @font-face and so on^^
but i hope ie10 will bring some major changes in html5/css3 standards
doboofficial 7 months ago
I love how well you explain every thing that you do. Makes it so easy to follow. Just enjoy watching your videos and learning. Keep up the good work !
vesipea 7 months ago
@blapgat persons who use IE dont deserve to see the brilliant css3 features :D
doboofficial 7 months ago
ouch use chaining....
$('a img').hover(function(){//code}, function(){//more code}).animate({},500);
reduce your calls to the DOM
meNiMONSTERs 7 months ago
o.o
1337Boredness 7 months ago
boo. scripting in the head really? Let keep it optimized for the sake of your users.
meNiMONSTERs 7 months ago
tutvid is the best tutorial channel around! Too bad he doesn't play with After Effects and Premiere also... :(
T0B0KKE 7 months ago
everything by this man is awesome best tutorials on youtube
Moonpig1975 7 months ago
Comment removed
jeowd 7 months ago
Great Tutorial! Haven't seen this tutorial done that way, but it works thats the main thing. I would personally use fadeTo(); for changing opacity, as I would usually only use animate(); if I was moving elements as well. Nevertheless thats the best thing about web development there are so many different ways of doing things :)
jeowd 7 months ago
Thanks man!
jettrooper00 7 months ago
Hey do you know how to make a tooltip that appears at a fixed position on top of a picture? Hope you can make a quick tut on tt!
heerolim 7 months ago
@heerolim You can do this with jQuery if you want you can google this sentence 'Giving a tooltip a fixed position' and it should the 3rd link called "jQuery Tooltip | Easy jQuery Tooltip with CSS & jQuery | Tooltip". If that is what you're looking for :).
AnimaPower9 7 months ago
with css3 you need only 1 extra attribute for your selector and you have the same effect, done in 5 seconds :)
doboofficial 7 months ago 19
@doboofficial tell us how?
theswedishshemale 7 months ago
@theswedishshemale
p {color:red; transition:color 5s;}
p:hover {color:blue;}
--> when you hover over the p, the color fades from red to blue in 5 seconds.
for each browser you have something like "-moz-transition", "-webkit-transition" and so on
doboofficial 7 months ago
@doboofficial hey, could you tell me what this is please.
LukeSambrooks1 7 months ago
@LukeSambrooks1
p {color:red; transition:color 5s;}
p:hover {color:blue;}
--> when you hover over the p, the color fades from red to blue in 5 seconds.
for each browser you have something like "-moz-transition", "-webkit-transition" and so on
doboofficial 7 months ago
@doboofficial but CSS3 Isn't supported in all browsers. When you use jQuery, you insure that everyone has the same experience.
gunnerone 7 months ago
@gunnerone thats right, but the css3-solution is the future and you can already use it quite well.
and jquery also only works with javascript on^-^
doboofficial 7 months ago
@doboofficial Sure, but how disappointed would people be if they clicked on a jQuery tutorial only to hear some dude talking about CSS3?
We'll do some CSS3 at some point.
N.
tutvid 7 months ago 24
@tutvid i'm starting at javascript and i would like to know how to send a string from a textbox to li tag inside my div. i can send u the code.thanks. Please reply.
JOKBO1 1 week ago
@doboofficial yes but css3 is not useful for people with older browsers.
aloykatos 7 months ago
@aloykatos thats why you should always update your browser^^
doboofficial 7 months ago
@doboofficial what is this extra attribute? I am new to all this so I would like to know alternate ways if possible
protoblaze 7 months ago
This has been flagged as spam show
@protoblaze
p {color:red; transition:color 5s;}
p:hover {color:blue;}
--> when you hover over the p, the color fades from red to blue in 5 seconds.
for each browser you have something like "-moz-transition", "-webkit-transition" and so on
doboofficial 7 months ago
@doboofficial Wheres the link then?
Nati0us 7 months ago
@doboofficial
YEAH!...but..work at IE?
I'm sure that NO...but with jquery work!!!
jbriz506pz 6 months ago
@jbriz506pz
NOP...also work in IE
jbriz506pz 6 months ago
@jbriz506pz not in the newest IE... -,-
robertusmol 5 months ago
@jbriz506pz as far as i remember, it doenst work with ie9 :/
doboofficial 6 months ago
@doboofficial you mean 5 attributes, dont forget your vendor prefixes
meNiMONSTERs 1 week ago
nice video
dragade101 7 months ago
awesome. you are really great at teaching.
ledsmash 7 months ago
hope videos keep rolling into my sub box #ftw
ziggy071621 7 months ago
Comment removed
ziggy071621 7 months ago
function inside of a function.....FUNCCEPTION
9000pivot 7 months ago 45
@9000pivot
lmao i wonder how many pp get that :D
Ichicracker 7 months ago
@9000pivot Funky..
SilverPenguins 3 months ago
Comment removed
9000pivot 7 months ago
css3 can do that...
mrtreb20 7 months ago
Glad your back.
Casperwilkes 7 months ago
can you please do tumblr theme design :)
candyshop2000 7 months ago
Wow, very simple.
Haroids 7 months ago
great video want to see many programming tutorials
VideoNewZ9 7 months ago
very nice tutorial
hohoyun 7 months ago
excellent tuts. keep em coming
DariusDaGreat86 7 months ago
hmm very easy library. looks great :)
hihaatje 7 months ago
Also what's so great about Dreamweaver? I think Sublime Text 2 is the best, and it's got a lot of the same features.
DstarSkater1 7 months ago
Uhhhmmm.. That'd be a lot easier and faster (And more efficient) using CSS3.
DstarSkater1 7 months ago
@DstarSkater1 and not supported in any version of IE, including 9
shruburb 7 months ago
@shruburb Anyone living in the dark ages and using IE doesn't even deserve to have all the nice fancy effects. They shouldn't be catered to at all.
DstarSkater1 7 months ago
Yay!! I love jQuery!
TheAppStoreOne 7 months ago
thanks for this awesome tutorials!
reject mediocrity!
GrandStudable 7 months ago