Try this Multi-Path SVG Scroll Animation Technique

  Рет қаралды 69,942

DesignCourse

DesignCourse

Күн бұрын

Пікірлер: 66
@DesignCourse
@DesignCourse Жыл бұрын
More SVG content to come! I love this stuff.
@ojasshukla1501
@ojasshukla1501 Жыл бұрын
Please do svg text smear and stretch having some bezeir
@theman7050
@theman7050 Жыл бұрын
Yesss please continue on the svg path :)
@CarlMahnke
@CarlMahnke Жыл бұрын
Love how simple the code behind this is!
@PaulMcCannWebBuilder
@PaulMcCannWebBuilder Жыл бұрын
Appreciation for the vanilla stuff. To add: If the scrollPercentage == 1, transition in a fillOpacity (from 0, set in the CSS, to 1, set in the JS) so it fills in at the end. To stop the initial transition when the page loads, you can add a .preload * { transition: none !important;} and a preload class to the body and remove that class on the window load.
@paulkanja
@paulkanja Жыл бұрын
ah yes, !important my old nemesis
@psychotrout
@psychotrout Жыл бұрын
For not doing any web development myself I found this very instructive and well explained.
@dsdcorp
@dsdcorp Жыл бұрын
Brilliant idea. Thanx. In browsers with "elastic scroll" ability, the scroll percentage may go out of range, like below zero and above 1. And it causes flickering when you reach the maximum scroll point. So after calculation the scrollPercentage value it should be trimmed like that: if (scrollPercentage1.0) scrollPercentage=1.0;
@gknt7234
@gknt7234 Жыл бұрын
Tell me if I'm wrong but JS parses 0.0 as 0, and 1.0 as 1 because the right side is equal to 0. So there is no need to add .0 to any integer.
@dsdcorp
@dsdcorp Жыл бұрын
@@gknt7234 ​ You right. My style is dictated by other scripting languages where there is some difference between integer and float types. It guarantees correct parsing in any case.
@fersahahmet9597
@fersahahmet9597 3 ай бұрын
this is a very smart hack of the stroke dash property of svg. i loved it
@CodeDreamer68
@CodeDreamer68 Жыл бұрын
You are very good at teaching, and thank you for zooming in.
@sklikizos
@sklikizos 9 күн бұрын
Nice tutorial! Loving the simplicity of percentage mapping for animation. You can do lots of cool stuff with that concept. Also, neue is German for new, pronounced "noya".
@dave_thebrave
@dave_thebrave Жыл бұрын
this is pretty cool. i think i can't wait for the watch.
@ClarkGoodram
@ClarkGoodram Жыл бұрын
Great tutorial. I tend to use Vivus and also Vivus instant for general animated svgs but this is great especially as its used with vanilla JS, css and scroll percentages. Great job.
@krishtamboli7909
@krishtamboli7909 Жыл бұрын
Please do negative space really waiting for it Love from India 🇮🇳 ❤️
@DesignCourse
@DesignCourse Жыл бұрын
I'll be doing it this week.
@krishtamboli7909
@krishtamboli7909 Жыл бұрын
@@DesignCourse Thanks 😊
@cjwebdev
@cjwebdev Жыл бұрын
I love messing around with the SVG's to do some creative designs with. I have an extension that I use with VS Code called Svg Preview. When you have a svg file in VS Code the screen will split and show you the image. The image will update in real-time when making changes. 👍
@chrisodillman3355
@chrisodillman3355 Жыл бұрын
It is so much fun to do stuff like this.
@historynerd6630
@historynerd6630 Жыл бұрын
very elegant and simple 👍 (If I had approached the same problem i would have done it way to complicated)
@alubhau
@alubhau Жыл бұрын
this really helps me because I was thinking of making this sort of handwriting letter reveal and I cant just do a simple reveal from left to right...I have to make sure the letters are written like they would be written in hand and this multi-path svg scroll technique will be used..just without the scroll
@craigiswayne
@craigiswayne Жыл бұрын
SVG is such an underrated tool
@rychei5393
@rychei5393 Жыл бұрын
WOW... thanks, this is super cool!
@jp0678
@jp0678 Жыл бұрын
Learned something new, thanks! Small nitpick btw, if you removed the style definition inside the SVG, might as well as remove the *cls-1* class of the ** :D
@mohamedlabarre166
@mohamedlabarre166 Жыл бұрын
Hi sir this a very insteresting video and you are a great teacher thanks
@rodrigodanielss
@rodrigodanielss Жыл бұрын
The result went very creative and professional. I am a free software adept, Gimp SVG conversion is messed, what are the great recommendations for download?
@yingzhaozhou4319
@yingzhaozhou4319 Жыл бұрын
❤incredibly smart. Thanks 👍
@theman7050
@theman7050 Жыл бұрын
You, Sir.. are AMAZING!!! Thanks for using vanilla JS. :D
@outpost31737
@outpost31737 Жыл бұрын
Nice one Gaz. I've created something similar for my own website. Looks super cool.
@josbouma7924
@josbouma7924 Жыл бұрын
Im typing this at the video intro, im curious to see if you can prevent repaints without something like greensocks, cuz that's what you use it for.
@DuneNobleman
@DuneNobleman Жыл бұрын
Thx for the lesson sir.
@mikr13
@mikr13 Жыл бұрын
What tool he used to zoom & highlight in like that at around 1:53? Great video btw!
@TwoTeaTee
@TwoTeaTee Жыл бұрын
NGL, Cool & Easy!
@unl0ck998
@unl0ck998 Жыл бұрын
that was really cool!
@paradiseofcreativity
@paradiseofcreativity Жыл бұрын
Thank you for the great content as always.
@lexxguru
@lexxguru Жыл бұрын
awesome dude!
@paski702
@paski702 Жыл бұрын
Very good content!! 😊
@mohamedlabarre166
@mohamedlabarre166 Жыл бұрын
just a suggestion can make a video about svgomg video tutorial for beginner?
@ΒινςΜοργκαν
@ΒινςΜοργκαν Жыл бұрын
Please Gary can you tell me your theme settings?
@utsavkataria96
@utsavkataria96 Жыл бұрын
Hey man, Great tutorial as always. If we animate the svg in after effects and upload it as bg video, would that get us the same result ?
@getRekt1234
@getRekt1234 Жыл бұрын
No
@andrezz2312
@andrezz2312 Жыл бұрын
I was wondering if you could share the whole formula to get the scroll percentage, because it got cut on frame, great video nonetheless!
@MatsEngstrom
@MatsEngstrom Жыл бұрын
let scrollPercentage = (document.documentElement.scrollTop + document.body.scrollTop) / (document.documentElement.scrollHeight - document.documentElement.clientHeight);
@blasterchampions1801
@blasterchampions1801 Жыл бұрын
nice video 👍
@Teng-t8p
@Teng-t8p Жыл бұрын
Why my console didn't show the length of the paths??
@jomsies
@jomsies Жыл бұрын
coding is hard .-. good thing people still hire front front front end designers. haha
@mohamedlabarre166
@mohamedlabarre166 Жыл бұрын
what about if I have one path on my svg ?
@Geoffrey_Dnx
@Geoffrey_Dnx Жыл бұрын
Hello, when i launch the page, drawing is complete before i scroll, i search something to change this :( Thanks for all :)
@Geoffrey_Dnx
@Geoffrey_Dnx Жыл бұрын
I've found the solution by myself, opacity:0 in CSS, and this small line of javascript: path.style.opacity = 1;
@Franbua
@Franbua Жыл бұрын
What about Figma? Is it possible to create this design by Figma?
@DesignCourse
@DesignCourse Жыл бұрын
Yes, the SVG elements.
@Franbua
@Franbua Жыл бұрын
@@DesignCourse It would be great to see a tutorial video of this
@DesignCourse
@DesignCourse Жыл бұрын
@@Franbua it's not needed. Just use the pen tool in Figma to do the same thing I did in illustrator
@DesignCourse
@DesignCourse Жыл бұрын
Just so we're clear, you can't create this type of animation in Figma. You can only complete the initial part of this tutorial in Figma (creating the svg shapes)
@Franbua
@Franbua Жыл бұрын
@@DesignCourse That's actually what I was trying to find out. Thank you so much :)
@cmilkau
@cmilkau Жыл бұрын
I wish people would spend less time on making scrolling look good and more time on getting rid of scrolling.
@milanche7395
@milanche7395 Жыл бұрын
When I saw the thumbnail of this video, I thought it was a girl on it. You could start wearing makeup too. LOL
@alexhartan
@alexhartan Жыл бұрын
Love this but hard to not think how much easier this would be done in Webflow... You can do it in under a minute
@kuriasjoy
@kuriasjoy Жыл бұрын
U looks brad pitt
@mantisory
@mantisory Жыл бұрын
Dude, time for a haircut :)
@DesignCourse
@DesignCourse Жыл бұрын
absolutely........ not!
@mantisory
@mantisory Жыл бұрын
Haha. Had to try :)
@ephrin-ligand
@ephrin-ligand Жыл бұрын
man. vanilla JS is not what you think :) stop using this words)
@josbouma7924
@josbouma7924 Жыл бұрын
Don't use this unless you want to drain mobile device batteries
@electrolyteorb
@electrolyteorb Жыл бұрын
You are featured on @Fireship 🤯
Amazing SVG Animations with No Code
15:59
DesignCourse
Рет қаралды 75 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 217 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 43 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
Awesome Scrolling SVG Line Drawing - How they did it!
21:45
DesignCourse
Рет қаралды 266 М.
Interactive UI/UX Crash Course
5:44:49
DesignCourse
Рет қаралды 68 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,9 МЛН
Make Awesome SVG Animations with CSS // 7 Useful Techniques
12:20
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 180 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 980 М.
The Right Way to Animate SVG in React
15:36
CoderOne
Рет қаралды 26 М.
Create an infinite horizontal scroll animation
32:01
Kevin Powell
Рет қаралды 213 М.
2.155/6 FA24 CP3 Intro
35:50
Lyle Regenwetter
Рет қаралды 164
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 217 МЛН