Create An Animated Radio Button Using GreenSock’s Cycle Feature

  Рет қаралды 16,994

Chris Gannon

Chris Gannon

Күн бұрын

Пікірлер: 29
@tomrishworth8317
@tomrishworth8317 8 жыл бұрын
Great tutorial, very easy to follow. Thanks a lot!
@Ihatetomatoes
@Ihatetomatoes 8 жыл бұрын
The master is back! Thanks for the tutorial Chris.
@framespark
@framespark 8 жыл бұрын
Not as polished as yours but they're getting better (slowly ;)
@Ihatetomatoes
@Ihatetomatoes 8 жыл бұрын
+Chris Gannon it's not about the polishing, your content is always very useful.
@chino01animation
@chino01animation 8 жыл бұрын
+Chris Gannon your videos are very helpful. Thanks for the effort sharing your workflow.
@framespark
@framespark 8 жыл бұрын
Great to hear!
@marlonmarcello
@marlonmarcello 8 жыл бұрын
That's great Chris, thanks man.
@deanhidri1822
@deanhidri1822 8 жыл бұрын
great tut. a lil suggestion, as you already told. for the menuId I would set data-menuid="$". I think they also work cross-browser.
@framespark
@framespark 8 жыл бұрын
Good to know thanks!
@pauldavis7099
@pauldavis7099 6 жыл бұрын
Hi Chris. Thank you for the awesome tutorial. Any chance you could post a part 2 that shows how you get the color background to switch to the next button?
@bmus8008
@bmus8008 7 жыл бұрын
Very very helpful!!
@clockwerkz
@clockwerkz 8 жыл бұрын
Hi Chris, I'm really digging your tutorials on svg.. I'm just getting started on learning it, so your channel will be super helpful!. I'm curious as to why you start your javascript with variables set to "www.w3.org/2000/svg"? If you cover that in one of your videos if you could point me to it that would be awesome. Thanks!
@framespark
@framespark 8 жыл бұрын
That's a good question and one I hadn't considered explaining. When you dynamically create an SVG element, like a use tag or circle you use the _createElementNS_ method (create an element using a namespace). The constructor requires the XML namespace as well as the tag type. So if you want to dynamically create a circle you'd write: _var myCircle = document.createElementNS("**__www.w3.org/2000/svg**__", "circle");_ Similarly if you do the same thing for a use tag you need to create it and then set its _xlink:href_ attribute (the element that is its 'source'). So you write: _var myEl =document.createElementNS("**__www.w3.org/2000/svg**__", "use");_ _myEl.setAttributeNS("**__www.w3.org/1999/xlink**__", "xlink:href", "#sourceCircle");_ I always start with a template pen which contains them because I do a lot of dynamic element creation and I don't want to keep typing them!
@clockwerkz
@clockwerkz 8 жыл бұрын
Wow, interesting.. I've never heard of createElementNS. So this is if you're dynamically creating an svg object in code? If you copy and paste an SVG image from Illustrator you wouldn't need to do this, correct? Thanks for explaining what it is!
@framespark
@framespark 8 жыл бұрын
Correct - if you copy graphics into the SVG tag from AI then you wouldn't really need the variables. However if you wanted to, say, create 100 particles that all reference one circle then you would run through a do...while... loop and dynamically create those elements that way. It would be pretty painful (and pointless) copying all those in from AI.
@clockwerkz
@clockwerkz 8 жыл бұрын
Thanks!
@muhammadathar3524
@muhammadathar3524 7 жыл бұрын
Boyoboyoboyboyoboyboy!!! AMAZING!
@mltumz5095
@mltumz5095 8 жыл бұрын
great tuts can u set your pen to public so we could see it :D if you dont mind
@framespark
@framespark 8 жыл бұрын
Which pen?
@mltumz5095
@mltumz5095 8 жыл бұрын
this one
@framespark
@framespark 8 жыл бұрын
+Marlon Tumala URL is in the description!
@mltumz5095
@mltumz5095 8 жыл бұрын
thanks gannon :D
@framespark
@framespark 8 жыл бұрын
+Marlon Tumala Please remember to include the license and link to original pen if you use it for anything. License can be found here codepen.io/chrisgannon/details/EyaPZZ
Create an Interactive Splat Animation in SVG
44:18
Chris Gannon
Рет қаралды 59 М.
CSS Animations Workflow: GSAP vs CSS Animation Comparison
19:45
GSAP Learning
Рет қаралды 21 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Learn to Create an SVG Knockout Mask Animation
15:03
Chris Gannon
Рет қаралды 30 М.
Style Radio Buttons with CSS
4:26
Before Semicolon
Рет қаралды 35 М.
Building a Dynamic Polyline in SVG and Animating with Greensock
30:55
Interactive SVG Animation with Greensock
4:53
Issey.Trufffle
Рет қаралды 40 М.
MorphSVGPlugin: Advanced control over SVG shape tweens and morphs
12:41
Locus Solus - GreenSock and ScrollMagic Deconstruction
8:00
Ihatetomatoes
Рет қаралды 16 М.
Animating SVG Icons? UI Animations with ShapeShifter! (Tutorial)
26:11
The Biggest React Framework You've Never Heard of
20:29
Theo - t3․gg
Рет қаралды 48 М.
#9 SVG “Drawing On” Animation - CSS Experiments
13:28
Syntax
Рет қаралды 59 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН