CSS Only Animated Background Effects | Html CSS Animation

Sdílet
Vložit
  • čas přidán 29. 08. 2024
  • Click For More : www.youtube.co...
    ------------------
    Enroll My Course : Next Level CSS Animation and Hover Effects
    www.udemy.com/...
    CSS Infinity Course : www.udemy.com/...
    Another Course : Build Complete Real World Responsive Websites from Scratch
    www.udemy.com/...
    ------------------
    Join Our Channel Membership And Get Source Code of My New Video's Everyday!
    Join : / @onlinetutorialsyt
    ------------------
    Source Code : / onlinetutorials
    Facebook Page : / onlinetutorialsyt
    Instagram : / onlinetutorials_youtube
    Twitter : / onlinetutoria16
    Website : www.onlinetutor...
    Buy Me A Coffee : www.buymeacoff...
    ------------------
    #csseffect #topcsseffects
    ------------------
    give proper credit if you repost this on other social media platform
    ------------------
    image source : www.pexels.com/
    ------------------
    Disclaimer video is for educational purpose only. Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use

Komentáře • 182

  • @pauloworkouts
    @pauloworkouts Před 2 lety +118

    Very nice video :D
    For anyone asking how to use this as a background, use z-index= -100; inside .bubbles{} class like this:
    .bubbles{
    z-index= -100;
    }
    This will send it to the background, and all other divs will go on top of it.

    • @Cevu01
      @Cevu01 Před 2 lety

      thans for that bro

    • @mayconalexsander1217
      @mayconalexsander1217 Před 2 lety

      GENIUS, THANKS🤝

    • @L0V3V4MP1R3
      @L0V3V4MP1R3 Před rokem +3

      @Honekichi Z-Index works in such a way that elements with a higher value will always be on top of the ones with lower values, like a hierarchy.
      Setting it to "-100" was done arbitrarily, realistically you can set it to any value (even to ridiculous amounts like -999999) as long as it's the lowest one compared to any other element that has a z-index.
      Likewise, if you want something to be on the top of everything else, using a z-index with the highest value in the page will also do the trick.

    • @KenzoFFx
      @KenzoFFx Před rokem

      how can i add image GIF under this animation without get problem

    • @8koi245
      @8koi245 Před rokem

      @TapGameplay- just in case you add some elements behind in the future, ensures it'll never the above them

  • @TaKu296
    @TaKu296 Před 9 měsíci +5

    Para los que quieran cambiar de color la tercera burbuja pueden usar un "span:nth-child(3n+3)".
    En resumen, 3= elemento donde empieza el conteo y 3n = el numero de espacios para volver a ejecutarse el cambio de color.

  • @ahmadmuhammad5097
    @ahmadmuhammad5097 Před 2 lety +16

    Last but not least, he explained the secret of this genius project, the whole secret is in mathematics, how does that happen?
    First: here it is using (inline variables) like in the example (--i:number), how does that work? By controlling the tag by numbers like a class, how is that? By animation-duration dividing the number of seconds by the number, the speed of the tag will be the result of the division, for example: 120s / 1=120s This means that the tag will move from bottom to top within 120s = 2min and this of course will take time, but if you divide 120s / 30=4s This will only take 4s.
    This is simply the idea of ​​the genius project, and this is what the code does exactly, and this calculation only works using the calculator calc, like in the example calc (120 / var(--i) ), and you can put any name for the variable that will work for you also easily ,, This is the idea of ​​a genius project simply, and I hope that my explanation has won your admiration.

  • @moonlightgirl2332
    @moonlightgirl2332 Před rokem +1

    thank you! in case somebody like me wants to do this in react you got to put: style={{ "--i": 11 }}

    • @anshikashukla9003
      @anshikashukla9003 Před rokem

      i had type code without any error but still it's not working, can you help?

    • @moonlightgirl2332
      @moonlightgirl2332 Před rokem

      @@anshikashukla9003 yeah sure, explain me more

  • @Richard-tu4jv
    @Richard-tu4jv Před rokem +3

    This looks incredibly cool thank you so much

  • @nikhilsharma2421
    @nikhilsharma2421 Před měsícem

    Cool. Thank you so much for such tutorials please keep on posting more.

  • @andresrivero551
    @andresrivero551 Před 2 lety +6

    It's beautiful... Good video bro, new sub 🤙🔥
    I have a little question, what extensions do you use?)

  • @raulhernanromeroherrera2547

    Desde Bogota, Colombia (no soy desarrolador y paso mi tiempo jugando con sus tutoriales pór que soy discapacitado) me gusto mucho el fondo y lo intente hacer con react pero me fallo la var--i. pero gracias muy interesante. si me puede ayudar tambien gracias. un abrazo.

  • @tharinduperera7622
    @tharinduperera7622 Před 2 lety +2

    It is small cool nice .... good ... ❤️❤️👍👏

  • @shivamoeini1920
    @shivamoeini1920 Před rokem +2

    Great, Thank you for the tutorial!

  • @wilmerpocaterrasulbaran9600

    Thank you man, you are great!!

  • @KellerG68
    @KellerG68 Před 2 lety +3

    You use a lot the CSS variables, you should use it too in the color definition instead of duplicate the values, you will avoid to re define all the properties

    • @fullgames926
      @fullgames926 Před 2 lety +3

      It just serves as an example not real world scenario

  • @FadiShakor
    @FadiShakor Před 10 měsíci +1

    Thank you very much

  • @hugocangi6214
    @hugocangi6214 Před 8 měsíci

    Hello friend, I just finished the one with animated bubbles
    very good, thank you and follow you
    greetings
    good week

  • @KrysGames13
    @KrysGames13 Před 2 měsíci +1

    tnku so much

  • @sabririhab5325
    @sabririhab5325 Před rokem +1

    super super love it. thank you

  • @Kiwicoders256
    @Kiwicoders256 Před 7 měsíci

    I loved the background music..

  • @Global-y8p
    @Global-y8p Před 2 lety +1

    Thanks bro it worked

  • @MrKB_SSJ2
    @MrKB_SSJ2 Před rokem

    BROOOOOOOOOOO MARRY ME!!!!! ITS SOOOOOO GOOD!!!!!!!!!
    THANK YOU

  • @mohdaman7958
    @mohdaman7958 Před 2 lety

    nice video bhai bahut kuch seekhne ko mila thanks bahi

  • @miraera1941
    @miraera1941 Před 9 měsíci +4

    it doesn't work brroooooooo

  • @hindustangameryogiraj9348

    😍😍😍you are best code editor bre 😍😍😍😱🤖

  • @mubeenuddin8746
    @mubeenuddin8746 Před měsícem

    thanx

  • @XOBEP_KHEXTOB
    @XOBEP_KHEXTOB Před 2 lety +68

    You can also use a gif background ;)

    • @developeria5984
      @developeria5984 Před 2 lety +4

      And we need to download 🙄🙄🙄

    • @InpireYourself23TT
      @InpireYourself23TT Před 2 lety +11

      And is no longer CSS Only 🙄

    • @L0V3V4MP1R3
      @L0V3V4MP1R3 Před rokem +3

      Page loading time would be higher IIRC

    • @icwhy4366
      @icwhy4366 Před rokem +4

      GIF is not responsive depending on the frames, lenght, size and quality high in filesize and prone to dropping frames and lag the webpage, also a gif stops and restarts mid animation when the hoover ends resulting in a bad looking animation when hoovering over the button.

    • @master138
      @master138 Před rokem +7

      1. The page won't be responsive.
      2. Gifs don't support all colors and gradients this means bad quality.
      3. Your website on big screens will be blurry.
      4. Loading time.

  • @trapez_yt
    @trapez_yt Před 3 měsíci +1

    heading is not showing

  • @renanfernandes1950
    @renanfernandes1950 Před 2 lety

    Great as always

  • @llkteac8553
    @llkteac8553 Před rokem +1

    very thanks I am a new developer and you helped me and I am 14

  • @xmarvel9310
    @xmarvel9310 Před rokem

    next level

  • @paradox987
    @paradox987 Před 2 lety

    You are amazing brother...

  • @Seedley
    @Seedley Před 2 lety +3

    could you put a text on top of this in html? I'm having some trouble trying to do this. it looks like the lights do not entirely fit the screen

  • @sidcivic
    @sidcivic Před rokem

    Give justify content space between than it will not go on ineside after zoom out

  • @TEAWTODAY
    @TEAWTODAY Před 6 měsíci +1

    Thank you

  • @JoseRamirez-oj6qg
    @JoseRamirez-oj6qg Před rokem

    genial -- cool
    thax

  • @8koi245
    @8koi245 Před rokem

    Hahaha loved it
    in react you'll need to use style= {{"delay" : your_var}}

  • @zorro2085
    @zorro2085 Před rokem

    Respect✨

  • @newzbharat
    @newzbharat Před 9 měsíci

    U r ausome

  • @LeConseiller
    @LeConseiller Před 2 lety

    Thanks! Cool.

  • @ashar_naveed
    @ashar_naveed Před 2 lety +6

    Great work as always! ❤
    I often saw you use style="--i:11" what is this? How do I implement it?

    • @KellerG68
      @KellerG68 Před 2 lety +6

      It is CSS variables, you can use these for all kind of purpose, even simplify all the CSS duplication

    • @ashar_naveed
      @ashar_naveed Před 2 lety +1

      @@KellerG68 Hey thanks for the reply. I'm curious to know how will I use this on Webflow?

    • @lipsi_haskovna
      @lipsi_haskovna Před 2 lety +4

      For example:
      RED
      YELLOW
      GREEN
      p {
      color: var(--clr);
      }
      You'll see the result :)

    • @weirdegg8316
      @weirdegg8316 Před rokem

      I don't get it aswell '_'

  • @kingsleyemeka2136
    @kingsleyemeka2136 Před 2 lety

    Respect sir🙌

  • @Cartagena2050
    @Cartagena2050 Před 10 měsíci

    Super !

  • @NoelSkyline
    @NoelSkyline Před rokem

    Sorry I want to ask, why even though I have followed exactly as in the video but when I run the code, it is not round/bubble shaped but like a rectangle, Sorry if my English is bad, I used translate for that

  • @umangternate
    @umangternate Před 2 lety

    The best

  • @Iuissel
    @Iuissel Před 5 měsíci

    Nice 👌

  • @AnonymousJohnDoe-cw1mp

    i want to add this to the background of the illuminated spinning 3d cube you made but i dont know how please could you help me @Online Tuorials

  • @djibrilsamassa4342
    @djibrilsamassa4342 Před 2 lety +2

    how do you doing style="--i:...;" in react ?

    • @winter-bear.
      @winter-bear. Před 2 lety +2

      it's html and css, no react my bro :)

    • @lisali6205
      @lisali6205 Před rokem

      hey Djibril, have you solve this ?

  • @8koi245
    @8koi245 Před rokem

    nice, now I gotta add add some arr and math. random

  • @chamalkakumuditha
    @chamalkakumuditha Před rokem

    Thanx 👍

  • @adulhakimturobov2040
    @adulhakimturobov2040 Před 2 lety

    hallo good luck with your work i'm waiting for something like this again i'm uzbek

    • @academypn
      @academypn Před 2 lety

      Eee gap yo o'zbeklar hamma yerda bor 🇺🇿😀

  • @aravind9842
    @aravind9842 Před 2 lety

    finally i done it

  • @mughiramughal
    @mughiramughal Před 10 měsíci

    Please tell me Dear! How to static it like a section

  • @Killisraelis5360
    @Killisraelis5360 Před rokem

    fucking hacker level animations salute to u you are just amazing in animations

  • @4evergrove139
    @4evergrove139 Před 9 měsíci

    pero no muestra como dejarlo de fondo realmente no utiliza algun z-index o algo por el estilo, funciona la animacion pero no como fondo realmente

  • @dmitryrosenfold3089
    @dmitryrosenfold3089 Před 2 lety +1

    I don't understand why it doesn't work for me..
    animation-duration: calc(10s/var(--i));
    I do everything exactly the same as in the video, but the circles with this team stand still .. Can someone help me?

    • @fluffyniki3257
      @fluffyniki3257 Před 2 lety

      If they stands still then maybe your animation is broken :P first of do simple animations created by your own not copy paste from tutorials, you won't learn that much this way

    • @maxdurbin3033
      @maxdurbin3033 Před 2 lety

      @@fluffyniki3257 not trying to learn animation, trying to learn react.

    • @armor2009
      @armor2009 Před 2 lety +1

      Same here. As soon as I add that line, the animation stops.
      Edit: I found the problem...
      Make sure the line(s): are correct.
      I had --1 instead of --i

    • @young-millionaires
      @young-millionaires Před rokem

      It happened to me too. Maybe you have another css code that specifies 'animate' as another value. Try using instead of only 'animate' =>'animate1'

  • @user-si6ln7rx6u
    @user-si6ln7rx6u Před 9 měsíci

    I followed the same line of code, but something weird happened in the viewport.

  • @AdeyCoder
    @AdeyCoder Před 2 lety

    Cool 👍

  • @KenzoFFx
    @KenzoFFx Před rokem

    how can add image GIF under this animation without get problem

  • @spacelover2868
    @spacelover2868 Před rokem

    Nice

  • @nikashg4813
    @nikashg4813 Před měsícem

    How to add text in this

  • @druken94
    @druken94 Před rokem +1

    how can i use the style="--i:10 " in react?

    • @e.creates1200
      @e.creates1200 Před rokem

      i did this:
      let style1 = { "--i": 11 }
      then this:

      then i created 10 more new number values for each span like:
      let style2 =
      let style3 =
      then i copy and pasted and scattered them in no particular order. i havent found a work around but this solution works. and as far as css, you can still do:
      calc( 125s, var(--i ) )

    • @javieruzcategui4441
      @javieruzcategui4441 Před rokem

      @@e.creates1200 no workin help please

  • @razshike2988
    @razshike2988 Před 2 lety

    Nice ❤️❤️❤️

  • @Yolo0918-g8d
    @Yolo0918-g8d Před 2 lety

    Wow..cool :D

  • @samuelmarcano4781
    @samuelmarcano4781 Před rokem

    what letters did you use at the beginning?

  • @josmarpena396
    @josmarpena396 Před rokem

    good afternoon bro the video is fine I liked it a lot brother and a question can be asked responsive adaptable for mobile

    • @OnlineTutorialsYT
      @OnlineTutorialsYT  Před rokem +1

      Yes you can

    • @josmarpena396
      @josmarpena396 Před rokem

      @@OnlineTutorialsYT good brother that can be made responsive could you help me how to do it please brother

    • @darkboy_2
      @darkboy_2 Před rokem

      ​@@OnlineTutorialsYT background music 🎶 so awesome ..please send me name of music

  • @urgut_mx
    @urgut_mx Před rokem +1

    👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍
    while True:
    print(" 👍👍 ")

  • @ameeshastephani4035
    @ameeshastephani4035 Před 2 lety +3

    Can I know how to write something in this animated background? When I wrote it, the animation background came separately

    • @ocskobianka8516
      @ocskobianka8516 Před 2 lety +1

      I would like to know it too, but every time i tryed, i never got a solution unfortunately, and he never shows hoe to do that :'( i guess u cant put things in front of an animated div

    • @dhoulTS1
      @dhoulTS1 Před 2 lety +2

      To use this as a background, use z-index= -100; inside ".bubbles{}" class like this:
      .bubbles {
      z-index= -100;
      }
      This will send it to the background, and all other divs will go on top of it.

    • @ameeshastephani4035
      @ameeshastephani4035 Před 2 lety +1

      @@dhoulTS1 Thanks for the reply

    • @ameeshastephani4035
      @ameeshastephani4035 Před 2 lety

      @@ocskobianka8516 Thanks for the reply

    • @ocskobianka8516
      @ocskobianka8516 Před 2 lety

      @@dhoulTS1 thank you, i will try it ❤

  • @chukwukingsley
    @chukwukingsley Před rokem

    I did everything right but the bubbles ain't moving like yours , they are just on a straight line , I don't get the problem .

    • @young-millionaires
      @young-millionaires Před rokem

      It happened to me too. Maybe you have another css code that specifies 'animate' as another value. Try using instead of only 'animate' =>'animate1'

  • @-JeeyaKarki
    @-JeeyaKarki Před rokem

    Sir, please explain us by talking and telling us and low down the of your background music.
    By the your is good but, I couldn't understand it without your explaination

  • @gokboru2771
    @gokboru2771 Před rokem

    Brother animation duration not working in my vs code output what i can do for this

  • @chiragbhaskar1468
    @chiragbhaskar1468 Před rokem

    Sir ye style = " - - i : 1 " kya hota he
    Ak vidio uske pr banaye na plz

  • @hamzaboubacar603
    @hamzaboubacar603 Před 2 lety +1

    First

  • @Baby_kkaboom
    @Baby_kkaboom Před rokem

    Does this work on replit?

  • @goku2006br
    @goku2006br Před 2 lety +1

    Is there a way to put this a background?

  • @rafaelmoreira6160
    @rafaelmoreira6160 Před 9 měsíci

    Eu não consigo adaptar pro mobile. Alguém pode ajudar?

  • @gideonadebisi207
    @gideonadebisi207 Před rokem

    The code didn’t run I had problem with TranslateY I don’t know why at that point the code didn’t run well

    • @young-millionaires
      @young-millionaires Před rokem

      It happened to me too. Maybe you have another css code that specifies 'animate' as another value. Try using instead of only 'animate' =>'animate1'

  • @tejashreemestry9186
    @tejashreemestry9186 Před 2 lety

    How to change the color of the each 3rd circle? And how to point it using inheritance?

    • @YuriG03042
      @YuriG03042 Před rokem

      use the nth child selector like he did. why would you use inheritance, how would that be helpful?

  • @Bunny-lr5uc
    @Bunny-lr5uc Před 2 lety +1

    Hi can I ask you what VS code color theme are you using? It looks nice. Thanks

  • @mayconalexsander1217
    @mayconalexsander1217 Před 2 lety +3

    How do you adapt this background for mobile? Bubbles are stretched because of the border-radius:50%;

    • @King_Garett
      @King_Garett Před rokem +2

      reduce the px using @media query

    • @YuriG03042
      @YuriG03042 Před rokem +1

      you can use rem instead of pixel, essentially the same. 50% shouldn't stretch it because it's half of the width/height

  • @wearegonnadance
    @wearegonnadance Před 9 měsíci

    Hello! May I know what app you are using for coding?

  • @renad1000
    @renad1000 Před rokem

    Dosent work with me! i dont know why

  • @difajoz7225
    @difajoz7225 Před 2 lety +3

    Very good animation😍😍😍 But why source code is not FREE ? 😒😒😒

    • @YuriG03042
      @YuriG03042 Před rokem +2

      because he is trying to make a living out of this? not everything needs to be free, it was coded right before your eyes, just redo everything they did, it's not that difficult

  • @nazmashaikh9568
    @nazmashaikh9568 Před rokem

    Sir my output it's not coming it's showing blank

  • @kiddoyoutube1
    @kiddoyoutube1 Před 2 lety

    I want, if i move the curser the background animation should also move along with it

    • @YuriG03042
      @YuriG03042 Před rokem

      feel free to do it with javascript and listening to the mouse position event

  • @Karan__Mali
    @Karan__Mali Před 2 lety

    How to you create video please tell bro.

  • @wanderboys4946
    @wanderboys4946 Před 11 měsíci

    How do I valign this to bottom?😢

  • @avakinmio9080
    @avakinmio9080 Před rokem

    man there are levels to this shit

  • @Time.TravelAI
    @Time.TravelAI Před 2 lety

    They were very compatible with Glassmorphism

  • @jush4299
    @jush4299 Před rokem +1

    How to link the background into page 2 and more or another html file please

    • @chukwukingsley
      @chukwukingsley Před rokem

      Just create another html file , copy the current html and paste it there , use link rel = " " the name of your css file

  • @robbridges1967
    @robbridges1967 Před 8 měsíci

    With a name like Online Tutorials, you really need to narrate what each line of code does instead of playing music over a 10x speed video.

  • @m.nurichsanin7212
    @m.nurichsanin7212 Před 2 lety

    What themes do you use. Bro ?

  • @jenniferceledon9804
    @jenniferceledon9804 Před 2 lety

    Do You know how to insert a third color in the bubbles?

    • @YuriG03042
      @YuriG03042 Před rokem

      use the nth selector or just pass in the style manually

  • @vegasishara8368
    @vegasishara8368 Před 2 lety

    like it

  • @JishanAhmed88
    @JishanAhmed88 Před 4 měsíci +1

    Source code link please?

  • @sabranatoutou6991
    @sabranatoutou6991 Před 2 lety

    How to create à text over it

  • @hindirecord6910
    @hindirecord6910 Před 2 měsíci

    Where is source?

  • @charakternik6630
    @charakternik6630 Před 2 lety

    I have a scroll on the right that shifts the text (

  • @meriemmery7648
    @meriemmery7648 Před 2 lety

    The code page did not open for me..Does it have conditions?

    • @winter-bear.
      @winter-bear. Před 2 lety

      have u used ?

    • @meriemmery7648
      @meriemmery7648 Před 2 lety

      I mean the whole code . I was unable to download pages from his own site no page html and no page css

    • @winter-bear.
      @winter-bear. Před 2 lety

      @@meriemmery7648 well..lets see

    • @thippanayugesh8414
      @thippanayugesh8414 Před 2 lety +1

      @@meriemmery7648 you will need to join his channel membership for that.

  • @kellyjin2469
    @kellyjin2469 Před rokem +1

    can someone kindly explain the "--i:11" and other numbers in the span elements? what are these called? how do they work? i would very much appreciate it!

    • @nargesmirzaaghaei
      @nargesmirzaaghaei Před rokem +1

      they are just css variables

    • @aakarshak1676
      @aakarshak1676 Před rokem +3

      I think it's a variable followed by a number, and the number sets the Y-axis speed based on the CSS code later on, where it divides 120.
      So like it's just a common ID for all the bubbles, and the number is the Speed.
      Hope I was right cause I am a COMPLETE beginner 💀

  • @NoOne-ir7wn
    @NoOne-ir7wn Před rokem

    c'est beau mais la vitesse de deplacement est trop grande

  • @eltondsouza4630
    @eltondsouza4630 Před 2 lety

    Sir please make this video zoom

  • @web_maker1
    @web_maker1 Před 2 lety

    What is theme name?