JavaScript Tutorial - Trigger CSS3 Transitions Control Animations

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • Code: www.adamkhoury...
    Learn a new more efficient way to control and establish animations in your web site and web applications. In this video lesson we will demonstrate how to trigger CSS3 transition animations using JavaScript. This will help designers and developers avoid requiring bulky 3rd party libraries to have smooth buttery animations at work in their web applications and web pages.
    Related Material About Event Handling:
    www.developphp....
    www.developphp....
    www.developphp....

КОМЕНТАРІ • 165

  • @NathDre
    @NathDre 7 років тому +13

    I've seen a few, but in just this one video, Adam has become my favourite online JS tutor! Really engaging, well paced and informative! Several 'eureka' moments throughout this one video and you've pulled together the random bits of knowledge I already had. Really happy to have found this series and look forward to working through the rest.
    TLDR: THANK YOU, ADAM!!

    • @AdamKhoury
      @AdamKhoury  7 років тому +3

      Awesome... thanks for the feedback.

    • @treyjimmy3589
      @treyjimmy3589 3 роки тому

      A tip: watch movies on Flixzone. Been using it for watching lots of of movies during the lockdown.

    • @keanudawson8657
      @keanudawson8657 3 роки тому

      @Trey Jimmy Definitely, have been using flixzone} for since december myself =)

    • @leroyjamison5700
      @leroyjamison5700 3 роки тому

      @Trey Jimmy yup, have been using flixzone} for since december myself :)

    • @jamesroland3629
      @jamesroland3629 3 роки тому

      @Trey Jimmy yup, I have been using flixzone} for since november myself :)

  • @Defender2516
    @Defender2516 11 років тому +3

    DUDE!!! THIS IS EXACTLY WHAT I WAS LOOKING FOR! THANK YOU!!!!

  • @savannahmash
    @savannahmash 11 років тому

    ..."one line..slim clean lightweight " well put, let javascript handle the DOM selection etc and css to implement..thanks great tut!

  • @senthilbalaji6489
    @senthilbalaji6489 8 років тому

    really awesome video!! perfect for non-absolute beginner programmers!!!

  • @mohamedosama9312
    @mohamedosama9312 6 років тому

    thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.
    man this is tutorial saved my life.
    😍😍😍😍😍😍😍😍😍

  • @berat013
    @berat013 10 років тому +5

    best tutorials in youtube ur great

  • @HTMLCSSjQueryTuts
    @HTMLCSSjQueryTuts 11 років тому

    I'm sure Adam has a lot to do but, if you want to post or message me your code I can help you try to figure out the problem. I followed it and it worked great on my end. Notepad++ shouldn't be causing any problems. It's a pretty decent IDE.

  • @dmv_p
    @dmv_p 11 років тому

    Great again! Adam, what is your position on java security?

  • @mocomadnes
    @mocomadnes 11 років тому

    Good job man, I learned to do this with css3, all browsers support this? my question is why they always had to place the prefix-webkit-,-mox-etc ...

  • @malachi5813
    @malachi5813 8 років тому

    Adam great stuff man thanks! Mucho!

  • @mrtomsandiego
    @mrtomsandiego 11 років тому

    Thank you so much, great tutorial

  • @hamberg42
    @hamberg42 11 років тому

    this was very easy to follow thanks. but how can a noob make 1 button fade in on the first click, and fade out on the second click, and repeat. i have a nav bar I want an object to fade in and out on every other click for that navigation element.

  • @sandeeppandey5364
    @sandeeppandey5364 9 років тому

    it was awesome..liked it

  • @julyamachado5845
    @julyamachado5845 8 років тому

    Like leaving closed by default? Loading the page the box is open. As you leave the box closed by default?

  • @chiru6753
    @chiru6753 10 років тому

    In order to get the transition effect , do we have to give initial styles via id selector (or) can we give using class selector also?

  • @xkluzivtv
    @xkluzivtv 10 років тому +1

    How can you perform these tasks without the buttons. For example, with your slide-close, slide-open you used buttons, however, if a webmaster wanted to have the user click on the element rather than using a button, how does the code change?

  • @xkluzivtv
    @xkluzivtv 10 років тому +1

    Problem: I was able to get the onclick for slideClosed on the element of the . However, I had to create a button for the slideOpen. I could not merely use one onclick to for closing and opening the element.
    The other problem is that I want to use the slideClosed and slideOpen for more than one block and every time I click on the second block the first block performs the function rather than the second block. However, when I eliminate the javascript and use the CSS3 :hover function I can control each block individually, except that I cannot get the close hold long enough for the user to select a link because as soon as I move the cursor from the slideClosed it opens.
    I believe onclick should be able to be included in CSS3 like :hover it would make the transitions more manageable for the webmaster and thus the end user.

  • @yanistancheva3076
    @yanistancheva3076 8 років тому

    Hi Adam, I really enjoy watching your tutorials, I find them easy for understanding by beginners like me. I would like to ask you about the onclick event, do you normally use it, or it's just for the tutorial? Because I know that's a very old method as they've been replaced by event listeners? :)

    • @yanistancheva3076
      @yanistancheva3076 8 років тому +1

      lol, I still don't know much stuff about jQuery, as I'm trying to understand JS first :)

    • @gorgalsi
      @gorgalsi 8 років тому

      ти българка ли си ?

    • @yanistancheva3076
      @yanistancheva3076 8 років тому

      Българка, да :))

    • @gorgalsi
      @gorgalsi 8 років тому

      Yani Stancheva
      в България ли си в момента ?

    • @yanistancheva3076
      @yanistancheva3076 8 років тому

      gorgalsi​ не, живея в Англия, ти?

  • @OrionArcadia
    @OrionArcadia 9 років тому

    How can you detect when the transition has finished to call another transition?

  • @ysfbkrcn
    @ysfbkrcn 11 років тому

    thx, great video!

  • @ankanpaul747
    @ankanpaul747 9 років тому +1

    Awesome! your tutorials are just wow..!!! i am learning a lot..!! a tonne of thanks..!!! keep up the good work, Adam Khoury

  • @eiclbackup
    @eiclbackup 10 років тому

    good work very nice

  • @TheRonron1994
    @TheRonron1994 11 років тому

    Hey.. I really need a help.. I have 4 div's naming 1,2,3 and 4.. 1 and 2 are aligned together.. 3-4 are aligned.. What I want to happen in my Homepage is when I hover the 1 div.. This 1 div will expand its width occupying the space of the 2 div.. The 2 div then will decreased its width... How am I going to do this..? Please I really need a help..

  • @RickySibley
    @RickySibley 11 років тому

    Hey Adam, Could u please help my with a code that changes a Div according to the month. and gets rid of the old Div. Not just using "hidden" but actually replaces the whole Div content according to the month. Message me if you want more info, i check my youtube every night eastern time. i would really appreciate it if u could help me.

  • @Super-yl7zv
    @Super-yl7zv 10 років тому

    hi Adam i saw ur video it's very Nice to Learn. But i have 1Doubt how to animate a images in javascript, like images should slide 1 by 1, plz can u upload 1Video tutorial plz it's my Request 2 u. Thanks & Regards

  • @ssegrubyhtomit6364
    @ssegrubyhtomit6364 9 років тому

    i made a small mistake took i put var elem = document.getElementById('el');
    when it was var elem = document.getElementById(el);
    hard to find these mistake

  • @MrBraveheart023
    @MrBraveheart023 11 років тому

    Could you make a video tutorial that has css3 transitions also but in a listbox.
    in a listbox have a 2 or 3 items that when a certain item is selected somwthing will appear below the listbox
    output may like this:
    input type=text>You have selected item 1. Thanks for this tutorial Sir.

  • @lukedominicodonnell2347
    @lukedominicodonnell2347 10 років тому

    Adam, I mean this in the best possible way....You are the KING!! of simplified explanation. My lecturers were no where near as succinct.

  • @acromaticgaming-minecraftm5003
    @acromaticgaming-minecraftm5003 5 років тому

    Dude, you deserve to make millions. Literally not joking. How have you NOT made an animation javascript library.

  • @xkluzivtv
    @xkluzivtv 11 років тому

    How to you get javascript CSS3 transitions to work without using a button? Can you provide those type of examples...Thanks

  • @SDNeeve_Author
    @SDNeeve_Author 11 років тому

    Thanks Tony, but I deleted the file now. I'm still trying to get a hang on this coding stuff as I want to achieve a particular transition that I haven't found any solutions to yet. But hey, I'll keep looking.

  • @automationsolution
    @automationsolution 8 років тому +1

    the right combination of pace, content and tools. i have started my web dev journey with this.

  • @gregio54
    @gregio54 11 років тому

    Super cool as always mate! Would you know how to do this but with a little auto pho magic? So let's say every 5 seconds new blabs would slide down?

  • @MarvelArian
    @MarvelArian 9 років тому

    please help me
    Create a circular timer widget. i.e. given a time say 30 seconds, the time digits displays in middle of a doughnut type circle and the doughnut changes color as each second passes. Say the circle is filled with color red and as time reduces from 30 to 0 portion of the circle transforms from red to white in that ratio. The input to the code would be a time in seconds and on clicking a button the timer should start

  • @halston696
    @halston696 11 років тому

    That's because you need the prefix, like "webkitTransition" for WebKit, or "mozTransition" for Firefox, and so on and so forth :)

  • @liinalif822
    @liinalif822 8 років тому

    can I change multible parameters of elements just one button click? Like opacity and height same time? Is somebody know ho to do that?

  • @aminemakhlouf5283
    @aminemakhlouf5283 6 років тому

    Hi everyone, I couldn't understand the get element by id here, there's nothing in the document with the id "el". Can someone explain to me please :)

  • @shulimen5125
    @shulimen5125 10 років тому

    I want to know where I can download the images you used in your tutorial.I really like your tutorial.Thanks!

  • @manishmahadevan
    @manishmahadevan 10 років тому

    you are the fuckin MAN !!! Pardon the expletive ;)

  • @KumarGaurav-ty5nw
    @KumarGaurav-ty5nw 10 років тому

    thank you for giving this Awesome free education ..plz make some tutorial for animation trigger on mouse control i.e, on moving mouse left to right or something like this.

  • @krimbelkacem5751
    @krimbelkacem5751 11 років тому

    thank you very much

  • @MRMOTOFOTO
    @MRMOTOFOTO 8 років тому

    Very Nice.....Is there a way to have one button to control slide in and out. Been hacking away at it all day and can't seem to figure it out

  • @brigidoduarte4651
    @brigidoduarte4651 8 років тому

    Hello friend I am from Paraguay course using Visual Basic aspnet thanks for the course

  • @SDNeeve_Author
    @SDNeeve_Author 11 років тому

    Hi.
    I've followed this video to the letter (excuse the pun) but now of the transitions will work. Help!!!

  • @kannanshanmugam0709
    @kannanshanmugam0709 9 років тому +1

    Hi, thanks for the wonderful tutorial.
    I'm working on Animate.css and I wanted to animate several elements in different parts of the page, but the animation happens right after the page is loaded and when you scroll down to the elemnts at the bottom of the page it doesn't animate. because its already done animation after the page load.
    Can you make a tutorial to make the elements animate using Animate.css and only animate when its visible in the browser.

  • @shamimreza5325
    @shamimreza5325 8 років тому

    If i want slide in with slideIn button in first click and i want slide out when i click slideIn button second time. Then what should i do?

  • @internetresident3894
    @internetresident3894 5 років тому

    Dude, thanks🤗🤗🤗

  • @hendrixansel9750
    @hendrixansel9750 8 років тому

    what editor is he using for javascript ?

  • @CASMANWHAT
    @CASMANWHAT 10 років тому

    awesome channel. thank you so much! gonna share this with all my buddies that wanna learn too.

  • @fly0wz0me
    @fly0wz0me 10 років тому

    Great, now I can create drop-down menu using JavaScript.

  • @HopWorksET
    @HopWorksET 5 років тому

    Awesome video and very well explained! Thank you!

  • @SDNeeve_Author
    @SDNeeve_Author 11 років тому

    Oh, and I'm using notepad++, don't know if that's causing the problem?

  • @ArboxMusic
    @ArboxMusic 10 років тому

    Dear Adam,
    Wonderful tutorial; thank you!
    I have got one question;
    What if I want to execute one transition after the other? So for instance, to let first an object move from left to right 100px, and then move this object down for 50px.
    Hopefully you will read this comment and send a reply :).
    Thank you!

  • @steveherbert504
    @steveherbert504 8 років тому

    Superbly presented and demo examples clearly explained!

  • @paolomonasterio169
    @paolomonasterio169 7 років тому +1

    Very good tutorial! Thanks to you..

  • @Stefan-wn7wi
    @Stefan-wn7wi 6 років тому

    Hey,
    Thank you so much for your awsome Tutorial! Everything works perfectly!
    But I have one simple problem. How can I do this with for example margin-left? when I try this it doesn´t work.
    I think it is because the "-". Pls help! .__.

  • @i-heart-google7132
    @i-heart-google7132 10 років тому

    can you please make a tutorial on how to make a jeopardy game?

  • @dodobig6812
    @dodobig6812 9 років тому

    how do I make these two functions into one?? Use if statement ? how to write it?

  • @Chockie73
    @Chockie73 7 років тому

    Hi Adam, I am just starting my web development journey and so far your videos about Javascripts are very informative. I'm wondering how do I create scripts on two events in sequence, for example, making a sticky navigation followed by a transition effect. I have created a sticky horizontal navigation with the links on the right side. When it sticks at the top of the page, a logo would appear sliding from the left. Your transition example in this video is perfect but I just could not make it work since I'm just new to this. Appreciate any feedback you could give.

  • @RajkumarPattnaik
    @RajkumarPattnaik 9 років тому

    slide in slide out searching thanks for that

  • @MaheshMV666
    @MaheshMV666 11 років тому

    exellent and this is my first animation finally worked

  • @hfe1833
    @hfe1833 6 років тому

    this is the one I'm looking for. JavaScript triggering the animation. if you could video for Ajax to trigger much appreciated

  • @trezesp8271
    @trezesp8271 9 років тому

    Hi man, your videos are great!! i am learning a lot.
    Can you tell me what editor do you use to create your websites? and what OS do you use?
    Thanks!! - keep teaching us

  • @Myrslokstok
    @Myrslokstok 8 років тому

    First exampel actually woorked. I love it!
    One dollar to you! This is great!

  • @toby1kenobe
    @toby1kenobe 11 років тому

    Great, i love your videos and in particular the teaching style. Don't know about everyone else but you certainly pitch at my level! You manage to show things simply without patronising us. That's not an easy skill. Anyway, thanks again for giving us this stuff free!!
    Toby

  • @Howto-rz4ur
    @Howto-rz4ur 4 роки тому

    Tysm bro , you are best subscribed 😊

  • @cmcdonough2
    @cmcdonough2 11 років тому

    Thank you for making this. Awesome, life changing free education.

  • @xkluzivtv
    @xkluzivtv 11 років тому

    Thanks for the reply #Adam ~ However, I don't understand why you removed you withheld the reply....

  • @vatsaljoshi4390
    @vatsaljoshi4390 6 років тому

    you are best thanks pls upload more videos

  • @terrencelouis7075
    @terrencelouis7075 10 років тому

    These are amazing. You stick to the point and you explain all of your actions thoroughly. So easy to watch and pay attention to. Entertaining as well. Great job.

  • @19mamo74
    @19mamo74 11 років тому

    I just stumbled upon your vids. I'm new learning all of this stuff, and this topic is exactly what I've needed clarification on. Of the books and online tutorials I've come across, this has been, by far, the most straightforward and easy to understand! Thanks for the excellent tutorial and the inspiration. Looking forward to learning more.

  • @majorwedgie6698
    @majorwedgie6698 11 років тому

    transition was only added in Internet Explorer 10.

  • @karannarre5260
    @karannarre5260 6 років тому

    can you show us how to add box shadow by this function

  • @theinvestigatorx
    @theinvestigatorx 11 років тому

    FANTASTIC!!!!! Great teaching I like it.Thanks,

  • @williamstidhem6122
    @williamstidhem6122 6 років тому

    You are the very best out there. A masssssss of super useful information and tidbits. ThaNk yOu!!!

  • @bdebouck
    @bdebouck 11 років тому

    Great tut Adam as always, I bow to the Teacher

  • @dreamcare100
    @dreamcare100 9 років тому

    This tutorial very nice and helpful good and better. Thank you Develop PHP

  • @yuhanli0921
    @yuhanli0921 9 років тому

    Hi Adam, for getElementById, why can you target function parameter?

    • @yuhanli0921
      @yuhanli0921 9 років тому +3

      sorry, that was a stupid question, I got it.

  • @bujashakalastname2182
    @bujashakalastname2182 8 років тому

    how about toggle? using just 1 button?

  • @eiclbackup
    @eiclbackup 10 років тому

    adam khoury good teacher love it

  • @susheelyadav6143
    @susheelyadav6143 5 років тому

    i got most helpful thing is from 17:55

  • @highgaugedesign
    @highgaugedesign 8 років тому

    Your the best teacher. Thank you

  • @iperpituallocomotionz7751
    @iperpituallocomotionz7751 6 років тому

    Definitely one of the best Hats off to you

  • @jossylopes
    @jossylopes 7 років тому +1

    Best tutorial, straight to the points. Keep it up man.

  • @alexander6510
    @alexander6510 10 років тому

    wow you really love the word buttery

  • @albert275
    @albert275 10 років тому

    Ahh, thanks man.

  • @KumarGaurav-ty5nw
    @KumarGaurav-ty5nw 10 років тому

    plz make some tutorial for xml

  • @tkstdude
    @tkstdude 8 років тому

    You are the best teacher ever!!!!!!

  • @joshuaketer
    @joshuaketer 9 років тому

    Hey dude.. this is just awesome

  • @romelleonidas2423
    @romelleonidas2423 9 років тому

    thank you for this tutorial man

  • @danielgarr4030
    @danielgarr4030 5 років тому

    wow...you ARE the man. tyvm.

  • @LukerLuk
    @LukerLuk 7 років тому

    bla bla bla whatever XD

  • @janhajek1875
    @janhajek1875 6 років тому

    Thank you! l was looking just for nice tutorial in JS and you are one of of the best!

  • @four321zero
    @four321zero 7 років тому

    can i do an onclick event without script? Just CSS?

    • @AdamKhoury
      @AdamKhoury  7 років тому

      You can target the CSS "active" selector to sort of simulate onclick. But it's not really the same thing.
      www.developphp.com/lib/CSS/active
      Targeting events in JavaScript opens up a massive amount of user interactivity that CSS cannot replicate. In CSS you only get a few user interactive states.

  • @huslerbling
    @huslerbling 9 років тому

    I learned in 20 min what i couldn't learn in weeks. Thank You!

  • @manoj225ful
    @manoj225ful 10 років тому

    thanks

  • @Syd-fz3od
    @Syd-fz3od 10 років тому

    what's the purpose of getElementById(el)

  • @chimpionboy
    @chimpionboy 6 років тому

    Thank you for this tuts

  • @chimpionboy
    @chimpionboy 6 років тому

    Thank you for this tuts

  • @flycubanlee
    @flycubanlee 8 років тому

    can you do a video on changing a image in div, instead of changing the color @adamkhoury

    • @DEEPAK4861
      @DEEPAK4861 8 років тому

      +FlyCuban Lee instead of colour u should get image and it all done