SVG Animation, from Sketch to Code

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 37

  • @wylinonwax
    @wylinonwax 7 лет назад +4

    Thanks for the tutorial, I would just like to recommend the querySelectorAll and do a for loop on the styling to keep it maintainable. You could use an increment on a setTimeout function to delay the animation on each path.

  • @Code-fr8qx
    @Code-fr8qx 6 лет назад

    For all of the beginners please do not copy and paste a function like how he did towards the end. That is highly discouraged. Better is to find what is similar in the code and reuse it. Other than that, thank you so much for the tutorial, I have learned quite a lot!

  • @lokeshlkr
    @lokeshlkr 7 лет назад

    Thank you! Specially for that Array/Offset explanation.

  • @despertaweb4793
    @despertaweb4793 8 лет назад +1

    Man that's classy! I've always thinked to to similar way. I was just waiting for some free time to play with and investigate, now I can go straitgh to play ! Thanx ! :D
    PS: An improvement, in each path you could set a meta-tag like meta-seconds with a value like "3" or whatever. Then you do a loop with all the .path elements then this loops takes the seconds from the html tag seconds.
    Think about It's quite faster and cleaner code!

  • @NektoDesigner
    @NektoDesigner 8 лет назад

    Nice tutorial! Thanks for sharing! :)

  • @Raresloth
    @Raresloth 8 лет назад +2

    You can save yourself the time of of removing / rounding pixels Sketch will do this for you if you check [preferences > Fit layers and points to pixel bounds]. Hope this helps.

  • @modiddymo
    @modiddymo 7 лет назад

    Fantastic stuff! Thank you!

  • @shikishakuha
    @shikishakuha 7 лет назад

    Great video!!

  • @MrBeentube
    @MrBeentube 4 года назад +1

    You can also import you sketch files into the Flow app (which you can find here createwithflow.com/ ) and then use sketch artboards to create animations. You can then use the app to export the animation as a GIF, MOVIE, Animated PNG, Animated SVG, iOS code, Web code, react native code, or even LOTTIE.

  • @sofiacrespo4080
    @sofiacrespo4080 3 года назад

    Thank you!

  • @VipulAnand751
    @VipulAnand751 8 лет назад +3

    creating an array [ 'path-1','path-2','path-3','path-4','path-5','path-6']and iterate with for loop?
    any better ideas?

    • @bersK00
      @bersK00 7 лет назад

      Exactly what I was thinking, for loops are used for iterative executions after all...

  • @TheRealEvol
    @TheRealEvol 5 лет назад

    Sorry you're closing down, can you offer your videos as open source? you were a great contributor to a thriving Sketch community. Sketch App is the reason i bought my first macbook!

  • @Kuwandi
    @Kuwandi 8 лет назад

    I looked , ok it's between the Div tag ...great tutorial BTW

  • @invalidred
    @invalidred 7 лет назад

    AMAZING. thanks a lot.

  • @GautamKumar-uideveloper
    @GautamKumar-uideveloper 8 лет назад +1

    Awesome... It will be more easy, if uses OOP... :) Thank you so much.. I was afraid of using svg... Now it seems its easy.

  • @DesignForVenturesco
    @DesignForVenturesco 7 лет назад

    Great tutorial!

  • @elevennovember3014
    @elevennovember3014 8 лет назад

    Very Nice.

  • @kingdiamond5840
    @kingdiamond5840 7 лет назад

    Cool! Thanks!

  • @basalduat
    @basalduat 7 лет назад

    Dear Skectch...
    Thank you for all the love and talent you have put into your demo. However, please enlarge the font to 24 points. Also, a black screen with light text is very bad for your viewers. Consider these stats. Many of us have poor eyesight. Many of us have to view your demo on a small screen. Good luck to you and thank you very much.

  • @Philastan
    @Philastan 7 лет назад

    Awesome!

  • @neiljoyes2596
    @neiljoyes2596 7 лет назад

    5:15 "fractions of pixels are gross" LOL

  • @nromancarcamo
    @nromancarcamo 6 лет назад

    Thanks!

  • @nicibis8963
    @nicibis8963 7 лет назад

    but is the code a javascript? can you post the javascript? doesn't seems to work on mine :(

  • @kellmen5975
    @kellmen5975 7 лет назад

    nise video))

  • @Kuwandi
    @Kuwandi 8 лет назад

    you removed the image tag, then you pasted the Svc code into html, ...how is that code nested into what tag.?? Missed that part how it is is incorporated to html....? Via syntax...

    • @Kuwandi
      @Kuwandi 8 лет назад

      Is it just a line of svs , purely by itself, or is preceded by some tag? ...

  • @s12jnr1jnasd
    @s12jnr1jnasd 7 лет назад

    Good!

  • @dalsbury1979
    @dalsbury1979 8 лет назад +3

    Does anyone ever buy Sublime?

    • @leandrotami
      @leandrotami 8 лет назад +2

      To "solve" that issue I switched to Atom :P

    • @bohakasha
      @bohakasha 7 лет назад

      Sublime is free the last time I downloaded it. Haven't heard of anyone buying it

  • @dextrin69
    @dextrin69 7 лет назад

    It seems there should be a much 'd.r.y'er way of writing these functions. Anyone know?

  • @ThomazMartinez
    @ThomazMartinez 6 лет назад

    Where is the JS code?

  • @eduardoxmenezes
    @eduardoxmenezes 8 лет назад

    ummm opening song pleease? ;-)

    • @rafahari
      @rafahari 8 лет назад +1

      Here you go pal: open.spotify.com/track/7vW6BQLlQpbo14pPDgp4da

  • @janzestolicy8248
    @janzestolicy8248 8 лет назад

    Great tutorial :) insta like, insta sub ;)

  • @s12jnr1jnasd
    @s12jnr1jnasd 7 лет назад

    круть!