SVG Animation With Text Tutorial | HTML CSS

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2018
  • Check out my courses and become more creative!
    developedbyed.com
    Today we are going to create an SVG animation using stroke dash array and stroke dash offset to create some really cool effects.
    We only need HTML and CSS for this effect. You can create the shapes and texts with Figma, Adobe XD or Adobe Illustrator.
    Let me know if you want to see more complex SVG animations with tools like bodymoving/lottie.
    Try to get creative and apply the path animations to different kinds of texts, shapes,etc.
    Microphones I Use
    Audio-Technica AT2020 - geni.us/Re78 (Amazon)
    Deity V-Mic D3 Pro - geni.us/y0HjQbz (Amazon)
    BEHRINGER Audio Interface - geni.us/AcbCpd9 (Amazon)
    Camera Gear
    Fujifilm X-T3 - geni.us/7IM1 (Amazon)
    Fujinon XF18-55mmF2.8-4 - geni.us/sztaN (Amazon)
    PC Specs
    Kingston SQ500S37/480G 480GB - geni.us/s7HWm (Amazon)
    Gigabyte GeForce RTX 2070 - geni.us/uRw71gN (Amazon)
    AMD Ryzen 7 2700X - geni.us/NaBSC (Amazon)
    Corsair Vengeance LPX 16GB - geni.us/JDqK1KK (Amazon)
    ASRock B450M PRO4 - geni.us/YAtI (Amazon)
    DeepCool ATX Mid Tower - geni.us/U8xJY (Amazon)
    Dell Ultrasharp U2718Q 27-Inch 4K - geni.us/kXHE (Amazon)
    Dell Ultra Sharp LED-Lit Monitor 25 2k - geni.us/bilekX (Amazon)
    Logitech G305 - geni.us/PIjyn (Amazon)
    Logitech MX Keys Advanced - geni.us/YBsCVX0 (Amazon)
    DISCLAIMERS:
    I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
    ~-~~-~~~-~~-~
    Follow my Twitter:
    / deved94
    Please watch: "Should You Become A Software Engineer?"
    • Video
    ~-~~-~~~-~~-~
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 818

  • @tomcatbuzz
    @tomcatbuzz 5 ปีที่แล้ว +348

    It is appearing that using the methods in Figma from the video may have changed some for the output that is pasted into the html. I had a double set of values beginning with to with values inside. I commented the first set for testing and it works. So for anyone having an issue just examine your svg code and comment out the first set of code surrounded by . The second set beginning in path contains all letter paths. Good luck. And great video.

    • @developedbyed
      @developedbyed  5 ปีที่แล้ว +46

      Thanks for the update! Figma is constantly changing so I appreciate you writing the fix!

    • @austinlynum7112
      @austinlynum7112 5 ปีที่แล้ว +17

      You are a lifesaver!! I was just about to give up thinking @DevEd doesnt know what he is talking about lol. Glad I looked at the comments first!!

    • @jaygreg6329
      @jaygreg6329 5 ปีที่แล้ว +14

      I am absolutely loving your channel. I am a new subscriber by the way.
      But I feel the need to recommend that you look at what is happening with exporting SVGs from Figma now. For me it is giving me a single which means that I can not select individual child paths. I tried to work around this by exporting the letters one by one after getting the whole size and placing the paths on top of each other. I know that Figma changing this is not your fault but your video unfortunately does not address this. I am still working on a fix but I have other things that I need to do for now. If you can update this it would be great. Thanks!
      Great idea though and got me inspired. Keep up the great content.

    • @FrankWauters
      @FrankWauters 5 ปีที่แล้ว +126

      Hi, if you choose "Center" instead of "Inside" or "Outside" in the stroke options, there is no issue with the mask.

    • @ekechkeidze745
      @ekechkeidze745 5 ปีที่แล้ว

      Thank you

  • @rajivonarx5958
    @rajivonarx5958 4 ปีที่แล้ว +358

    For those of you who get a single path after following this video, here is a solution I've found (I'm a complete noob at this, took me a full day to solve and wanted to share my workaround).
    Do not remove the fill color like he did, removing fill and adding strokes then outlining then copying as svg always gave me a single path. Something like this happens:
    Instead,
    1. keep the fill color
    2. don't add strokes (we will do it manually)
    3. get outline stroke of filled text (no strokes!)
    4. copy as svg
    you should get
    remove the fill property and add stroke="white" & stroke-width="5" to the path tags. The paths should look like
    It is important that you remove the fill property or else the fill animation at the end won't work. I hope this helps.

    • @VIKASSAINI007
      @VIKASSAINI007 4 ปีที่แล้ว +9

      Thanks for saving my time, yes methods in figma changed

    • @virginietrubiano3062
      @virginietrubiano3062 4 ปีที่แล้ว +8

      Thank you so much for sharing!!! That's exactly what I was looking for.

    • @umitatak5396
      @umitatak5396 4 ปีที่แล้ว +2

      thanks

    • @Raspace
      @Raspace 4 ปีที่แล้ว +6

      i was losing my brain dude thanks

    • @sriramrepaka7003
      @sriramrepaka7003 4 ปีที่แล้ว +3

      THANKS A LOT DUDE YOU SAVED MY DAY

  • @chrismauerer
    @chrismauerer 4 ปีที่แล้ว +262

    Love this guy - so humble and excited about what he shares - so dope!

    • @djsargex7777
      @djsargex7777 4 ปีที่แล้ว

      definitely!

    • @andytataw5466
      @andytataw5466 3 ปีที่แล้ว

      Ikr!

    • @renatokardos5953
      @renatokardos5953 3 หลายเดือนก่อน

      Hello, I don’t see much chance, but could you upload the good files somewhere?
      Whatever i do is no good…
      Thank you!

  • @AkashsinghSisodiya
    @AkashsinghSisodiya 4 ปีที่แล้ว +3

    Hey man, your enthusiasm / smile / excitement on the start of the video is contagious! I came here tensed but left with a smile!

  • @josantiago109
    @josantiago109 4 ปีที่แล้ว +4

    I loved the simplicity of your explanations. Will check out more of your videos for sure!

  • @ammarahmed84
    @ammarahmed84 3 ปีที่แล้ว +2

    I love how you explain this stuff. I’ve been watching so many web dev videos and this is by far the best. This is the first video of yours that I watched and instant subscribe. You deserve success.

  • @developedbyed
    @developedbyed  5 ปีที่แล้ว +114

    This took a while to process sorry about that! But this was really fun to make!

    • @jaygreg6329
      @jaygreg6329 5 ปีที่แล้ว +1

      I am really struggling with using Figma. I left a comment earlier in the pinned comment at the top of this video. It is the first time that I ever tried it and I am honestly less than impressed with it. That is not your fault I understand that and I also recognize that it is currently an industry standard but the fact is the more I try to figure out how to reproduce this tutorial using it I have seen strange choices that Figma made.
      When looking more closely at the way that Figma compiles it SVGs it seems that when dealing with text elements the stokes are not actually strokes but instead are fills. If you change the HTML from stroke to fill in what is supposed to be a stroke a strange grid-like pattern appears. I am new to a lot of these things but am learning very quickly from constant focus on JS and React. So, forgive my lack of knowledge in this particular instance. What I am wondering is, is there a way to cause the fill to render like you did with the stroke. I am trying to find a solution because I would love to use this effect in my current project but Figma's compiling of its SVGs has caused me to waste a day. But it is not a total loss because I have learned quite a lot about SVGs so thanks for the tutorial anyways. Anyone that wants to point me in the right direction I offer a thanks in advance. Thanks!

    • @mustafaaur4019
      @mustafaaur4019 4 ปีที่แล้ว +9

      Iam having trouble with the fill property.its not filling the svg as you did in the video pls help.

    • @kovevideo
      @kovevideo 4 ปีที่แล้ว

      @@mustafaaur4019 same problem here

    • @suzamuidesign
      @suzamuidesign 4 ปีที่แล้ว

      3d image hover css
      th-cam.com/video/yyDey1Iid0c/w-d-xo.html

    • @DebasishDas-vp5dg
      @DebasishDas-vp5dg 4 ปีที่แล้ว

      I write every single code and it didn't work can you help me sir ??

  • @zygimantasjasiunas5240
    @zygimantasjasiunas5240 5 ปีที่แล้ว +3

    I love your enthusiasm. Keep doing a great job! Thanks for the tutorial

  • @asdf09er
    @asdf09er 4 ปีที่แล้ว +13

    I like that I learn things you aren’t even trying to teach, like how to perfectly center the text (especially for times you don’t know the text width). Really enjoying your videos.

  • @jonahbutler9079
    @jonahbutler9079 4 ปีที่แล้ว

    Hey dave ed. Thanks for this tutorial! I've often come across these and have often wondered how this little piece of magic works. I never really took the time to do the research, until one day this appeared in my feed. Thanks for unraveling the mystery in such a great format. Your enthusiasm for teaching and programming is really second to none. (:

  • @kendalljones99
    @kendalljones99 4 ปีที่แล้ว

    I've been binging on your videos the last couple of days and have learned a ton! Thanks!

  • @wpbites6722
    @wpbites6722 5 ปีที่แล้ว +2

    That was amazing! Loved it.

  • @4MXW
    @4MXW 2 ปีที่แล้ว

    so much inspiration and excitement!
    I'm not only inspired but I also lost my fear to these svg types of animations.
    Tysm! Keep it up. Much love

  • @stn3042
    @stn3042 4 ปีที่แล้ว +14

    little effort, big result - like watching your videos

  • @vanjacvetkovic3788
    @vanjacvetkovic3788 5 ปีที่แล้ว +4

    Keep making videos! And smiling too 😁 Great work, thank you!

  • @karmahchannel
    @karmahchannel 5 ปีที่แล้ว +3

    Its'cool, that's exactly i've been looking for

  • @m75172
    @m75172 4 ปีที่แล้ว

    I love your energy! And the video was really helpful - imagine all the possibilities!

  • @RC-bl2pm
    @RC-bl2pm 4 ปีที่แล้ว

    This is a fantastic introduction to SVG manipulation. I really appreciated this lesson, thanks so much for sharing.

  • @Drzfinest929
    @Drzfinest929 4 ปีที่แล้ว

    Loved this video, your excitement alone throughout the video made me enjoy it even more. Thank you for this wonderful video! Going to use it for my landing page group project !

  • @DanielRodriguez-iv5rw
    @DanielRodriguez-iv5rw หลายเดือนก่อน

    I love the way you explain and make everything look so easy, excellent video!

  • @maresolaris
    @maresolaris 4 ปีที่แล้ว

    I really love your enthousiasm and humor. Very useful video with lots of information. Thank you very much for posting this!

  • @pranavchandra1662
    @pranavchandra1662 4 ปีที่แล้ว +1

    That is really amazing, thanks for bringing such great content, love your creativity :)

  • @stylesg7818
    @stylesg7818 5 ปีที่แล้ว

    Finally!! This is how it's made.
    Thank you so much!

  • @23Miniatures
    @23Miniatures 4 ปีที่แล้ว

    Wow, your tutorial is really smooth and your reaction is so friendly,

  • @abhishek_k7
    @abhishek_k7 4 ปีที่แล้ว +1

    Awesome animation effect! Thank you!

  • @evakuator8118
    @evakuator8118 5 ปีที่แล้ว +46

    Jesus Christ, that's what I've been looking for like years. I just stumbled upon this video, and finally here it is.
    It's super cool, subscribed. Waiting for more videos to come, really hyped up. Your channel must blow up, this is some quality content. Now, need to watch your other videos, which I'm about to do. Sorry for my english, I am not a native speaker, not even a good speaker. Again, thanks for the video

    • @developedbyed
      @developedbyed  5 ปีที่แล้ว

      thanks for the lovely comment! Will do my best to post alot of videos! Feel free to share the video!

    • @yaseenshaik2682
      @yaseenshaik2682 4 ปีที่แล้ว

      @@developedbyed how to make it responsive

    • @vladfreishmidt2707
      @vladfreishmidt2707 4 ปีที่แล้ว +1

      Yaseen Shaik set width for svg in media-queries but I’m not sure will the amount of dots will stay the same

    • @wolfgangr.3268
      @wolfgangr.3268 4 ปีที่แล้ว

      @@vladfreishmidt2707 & Yaseen Shaik : Setting width to a percentage (50%) makes it responsive without changing anything else.

    • @paulsonstechpoint773
      @paulsonstechpoint773 3 ปีที่แล้ว

      @@wolfgangr.3268 That works!

  • @unknown_channel_name
    @unknown_channel_name 4 ปีที่แล้ว

    That was really cool. As I am new to web designing, I really enjoy your content. It helps a lot to me in different aspects. Thanks for making such awesome tutorials.

  • @shahbokhari
    @shahbokhari 5 ปีที่แล้ว +1

    Beautiful work man! Thank You

  • @Sausty
    @Sausty 3 ปีที่แล้ว

    Thanks Ed, this is really great. So many posibilities!

  • @agk2011
    @agk2011 4 ปีที่แล้ว +1

    The first video to watch on your channel. Great one. Keep it up.

  • @pauloabraga2
    @pauloabraga2 ปีที่แล้ว

    What you do and what you did, for us, is just a miracle ! Thank you very very much ! Best regards from Paris

  • @japsimransingh9933
    @japsimransingh9933 3 ปีที่แล้ว +1

    Your tuts are always worth watching

  • @joyahmed1269
    @joyahmed1269 3 ปีที่แล้ว +4

    Appreciate it a lot. And changing the stroke linecap and linejoine worked perfect for me...
    stroke-linecap="round"
    stroke-linejoin="round"

  • @trustjamin3023
    @trustjamin3023 3 ปีที่แล้ว

    I really enjoyed how you made everything fun, thanks for making this tutorial been looking for something like this

  • @resty1672
    @resty1672 3 ปีที่แล้ว

    Its amazing you made such complex skill feels understandable, thank you so much !

  • @sparrowestes962
    @sparrowestes962 2 ปีที่แล้ว

    Excellent. So fun!

  • @allagligora5534
    @allagligora5534 7 หลายเดือนก่อน

    Thanks Ed, you're the best!

  • @lachnr0ll
    @lachnr0ll 2 ปีที่แล้ว

    Awesome tuturial. Simple, effective, creative, and useful.

  • @johnyacoub2290
    @johnyacoub2290 4 ปีที่แล้ว

    I really enjoyed it . keep it going man! thumbs-up!!

  • @isaacdaniel9180
    @isaacdaniel9180 3 ปีที่แล้ว +1

    Quality content. Really enjoying your videos.

  • @dragosdesign4563
    @dragosdesign4563 4 ปีที่แล้ว +3

    more css and js effects please. Great work on this tutorial. I just subbed to your channel.

  • @pabloenina
    @pabloenina 8 หลายเดือนก่อน

    Thank you, works perfectly

  • @breckiam
    @breckiam ปีที่แล้ว

    Aweomse tutorial, thank you!

  • @chans9055
    @chans9055 4 ปีที่แล้ว

    Always thank you for your great tutorials.

  • @gazzzou
    @gazzzou 5 ปีที่แล้ว +1

    Love your tutorials! keep it up please!

  • @tam2000k2
    @tam2000k2 4 ปีที่แล้ว

    Beautiful, absolutely beautiful

  • @avashurov
    @avashurov 2 ปีที่แล้ว

    That looks so awesome! That’s for sharing!

  • @user-qj1wu4jt3r
    @user-qj1wu4jt3r 3 ปีที่แล้ว +8

    You can use stroke-dasharray and stroke-dashoffset properties with percentages to avoid javascript. Also you can use stroke-linecap with different values to remove gaps from edges of characters.

  • @heavenprado2538
    @heavenprado2538 3 ปีที่แล้ว

    i've been trying so hard to learn svg and this amazing dude just made it so easy omg thank you so much

  • @cintron3d
    @cintron3d 4 ปีที่แล้ว

    Excellent tutorial, and very creative idea. Thanks!

  • @jugaltiwari5908
    @jugaltiwari5908 4 ปีที่แล้ว

    I Love your videos Dev Ed. Thank You so much.. Really appreciate your creativity.

  • @oleersoy6547
    @oleersoy6547 2 ปีที่แล้ว

    Such a cool video!!

  • @nocturno7887
    @nocturno7887 3 ปีที่แล้ว

    Thank you Ed!

  • @alanchen4257
    @alanchen4257 10 หลายเดือนก่อน

    I just love it😍

  • @soulaimane3729
    @soulaimane3729 4 ปีที่แล้ว

    What a great thing i just learned , thank you so much :)

  • @soultouchingsongs
    @soultouchingsongs 4 ปีที่แล้ว

    Hey, You are just awesome. Cool tutorial. Thanks a ton! Be Blessed! I used Inkscape for creating the svg.

  • @saumyashukla5013
    @saumyashukla5013 4 ปีที่แล้ว

    Thank you Dev Ed... You are amazing💥

  • @dslas4ever
    @dslas4ever 4 ปีที่แล้ว

    Great tutorial! keep it up your good work! Thank you

  • @tom5890
    @tom5890 4 ปีที่แล้ว

    I've been confused about SVG animation forever, using hacks here and there. This is a very nice tutorial!

  • @silverdaymon8786
    @silverdaymon8786 4 ปีที่แล้ว +35

    If you have problem applying the stroke-dasharray, just put the code at the bottom of the paths in the into the html file.
    It becomes:
    1
    2
    to 8
    And edit:
    #logo path
    to:
    #logo > path
    To not select paths into mask node. (If not you will get 16 path instead of 8).
    Into js and css file.
    Hope it helps!

  • @welingtonwel8799
    @welingtonwel8799 3 ปีที่แล้ว

    Hello, I'm from Brazil and I'm addicted to your videos, I'm already a new subscriber. Thank you.

  • @jaysenb
    @jaysenb 2 ปีที่แล้ว

    my man, always on point

  • @Ponk_80
    @Ponk_80 4 หลายเดือนก่อน

    It’s very nice of these guys to create videos for the viewer.

  • @alexlegoG
    @alexlegoG 2 ปีที่แล้ว

    Amazing video! Really elegant and easy to implement design idea!

  • @anasyunus3389
    @anasyunus3389 4 ปีที่แล้ว

    Hey Yo....Yours Is the most perfect understandable video i have seen. Please continue making such videos

  • @extremespartan117
    @extremespartan117 4 ปีที่แล้ว

    Very informative. Thank you!

  • @sandeepozarde2820
    @sandeepozarde2820 3 ปีที่แล้ว

    Brilliant DevEd

  • @mohammedmuizz4825
    @mohammedmuizz4825 4 ปีที่แล้ว

    Love your videos .. its super helpful being a starter into web designing and development.. superb bro loads of love .. ❤️

  • @necrobahamut
    @necrobahamut 3 ปีที่แล้ว

    This was awesome!

  • @Chocokaylarobin
    @Chocokaylarobin 4 ปีที่แล้ว

    You are the absolute BEST!!!

  • @atiqurrahman3887
    @atiqurrahman3887 4 ปีที่แล้ว

    Take love from heart. It's really amaging and finally I can do it thanks a lot bro

  • @mahdiazizi6342
    @mahdiazizi6342 4 ปีที่แล้ว +2

    Bro u are sick 🔥🔥🔥

  • @nicksparks3543
    @nicksparks3543 3 ปีที่แล้ว

    Amazing, I didn't quite get the 'no-fill' white outline right in figma, but I followed your code straight through....and it worked I am amazed that something that simple can look so classy! Thankyou my lovely friend on the internet. :)

  • @alistaw1866
    @alistaw1866 2 ปีที่แล้ว

    I really can't get enough if your tutorials

  • @ananymo
    @ananymo 2 ปีที่แล้ว

    Great video. Thank you 👍

  • @DDoesT
    @DDoesT 4 ปีที่แล้ว +1

    I’m so glad I found your channel!

  • @akbarnuzberg7603
    @akbarnuzberg7603 4 ปีที่แล้ว

    Thank you so much, you're help me a lot, because I wanna this animation for my own page, and you give this tutorial

  • @veronicaperez308
    @veronicaperez308 4 ปีที่แล้ว

    Amazing video, thank you so much! :)

  • @sepiroboy
    @sepiroboy 4 ปีที่แล้ว

    Thanks for this awesome video!

  • @kermitthefrog5885
    @kermitthefrog5885 4 ปีที่แล้ว

    It was a very simple way yet cool result to animate a text. thumbs up :)

  • @AndresRodriguez-wu6nj
    @AndresRodriguez-wu6nj 4 ปีที่แล้ว +1

    Great video! I've been looking to learn how to do this for quite a bit but never found a resource as good as this one. Also, another way to center the content of the body using flexbox:
    body {
    width: 100%;
    height: 100vh;
    background-color: rgb(32, 35, 48);
    display: flex;
    justify-content: center;
    align-items: center;
    }
    This way you wouldn't need to style the SVG's position :)

  • @juliamovsisyan593
    @juliamovsisyan593 ปีที่แล้ว

    You are my programming motivation 👨‍💻

  • @leo_hlush
    @leo_hlush 4 ปีที่แล้ว

    Very helpful video! Thank you

  • @emanuelamaviglia7919
    @emanuelamaviglia7919 2 ปีที่แล้ว +4

    For those who are having problems with figma and have only a single path. For me worked this:
    1) Write the text, WITHOUT adding the stroke.
    2)Right click and select Outline Stroke
    3)Copy as SVG
    You should have the right numbers of paths in this way :)

    • @nitinkanhurkar3450
      @nitinkanhurkar3450 ปีที่แล้ว

      Yes but whats the point of doing that if we dont get stroke for animation.?..is there another way to get stroke?

  • @EOrtiz
    @EOrtiz 3 ปีที่แล้ว

    Appreciate the vids, learning a ton!

  • @TashriqueAhmed
    @TashriqueAhmed 4 ปีที่แล้ว

    You are freaking awesome maaannn!!!

  • @d3v431
    @d3v431 2 ปีที่แล้ว

    bro. I love you so much. After struggling with Gsap draw svg plugin, i was trying to find easy way out.. then i found you .. damn this is cool.

  • @arvandit3280
    @arvandit3280 5 ปีที่แล้ว +1

    great tutorial

  • @GaganDaroach
    @GaganDaroach 2 ปีที่แล้ว

    awesome video!

  • @nicksparks3543
    @nicksparks3543 3 ปีที่แล้ว

    Thankyou so much, did the figma bit slightly different(newbie), absolutely amazing tho! did the code and boom! it worked. thankyou

  • @studioaljiji3982
    @studioaljiji3982 4 ปีที่แล้ว

    This is great . Thank you

  • @TPc0
    @TPc0 4 ปีที่แล้ว

    Well sir you’ve just won a subscriber for life!

  • @messizqin9603
    @messizqin9603 3 ปีที่แล้ว

    this is awesome thanks very much

  • @Al_Gonzo
    @Al_Gonzo 4 ปีที่แล้ว

    Interesting video. Your collab with web dev simplified got you a new viewer

  • @georgekrax
    @georgekrax 4 ปีที่แล้ว

    Awesome video! 😍🔝

  • @nihaltiwari2479
    @nihaltiwari2479 3 ปีที่แล้ว

    you are so cool i just love your videos keep going.

  • @CreativeSequence
    @CreativeSequence 4 ปีที่แล้ว

    That was awesome i really like that

  • @pierluigischiavo4556
    @pierluigischiavo4556 4 ปีที่แล้ว

    Thanks Ed

  • @rehanahmed6210
    @rehanahmed6210 5 ปีที่แล้ว

    Great work. Thanks bro

  • @angelovso7469
    @angelovso7469 3 ปีที่แล้ว

    Thx a lot, man. Youre amazing!!!