MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/4tf1s5/d4js_declarative_datadriven_documents/d5i5o7q/?context=3
r/javascript • u/joelburget • Jul 18 '16
10 comments sorted by
View all comments
Show parent comments
1
i tend to use CSS transitions. they’re more performant anyway.
1 u/tbranyen Jul 19 '16 How do they relate to SVG? Seems like Web Animations are more in line with SVG stuff than CSS animations meant for HTML elements. 1 u/flying-sheep Jul 19 '16 “web animations”?I only know SMIL and CSS animations/transitions. SVG can do both 1 u/tbranyen Jul 19 '16 Pretty sure css transitions dont work with svg attributes making them useless. Siml is deprecated? 1 u/flying-sheep Jul 19 '16 you’re right. CSS can only animate properties that have a CSS equivalent (e.g. fill, but not cx)in the end i had to do e.g. all placement that i wanted to animate into transforms (which are animatable via CSS)
How do they relate to SVG? Seems like Web Animations are more in line with SVG stuff than CSS animations meant for HTML elements.
1 u/flying-sheep Jul 19 '16 “web animations”?I only know SMIL and CSS animations/transitions. SVG can do both 1 u/tbranyen Jul 19 '16 Pretty sure css transitions dont work with svg attributes making them useless. Siml is deprecated? 1 u/flying-sheep Jul 19 '16 you’re right. CSS can only animate properties that have a CSS equivalent (e.g. fill, but not cx)in the end i had to do e.g. all placement that i wanted to animate into transforms (which are animatable via CSS)
“web animations”?
I only know SMIL and CSS animations/transitions. SVG can do both
1 u/tbranyen Jul 19 '16 Pretty sure css transitions dont work with svg attributes making them useless. Siml is deprecated? 1 u/flying-sheep Jul 19 '16 you’re right. CSS can only animate properties that have a CSS equivalent (e.g. fill, but not cx)in the end i had to do e.g. all placement that i wanted to animate into transforms (which are animatable via CSS)
Pretty sure css transitions dont work with svg attributes making them useless. Siml is deprecated?
1 u/flying-sheep Jul 19 '16 you’re right. CSS can only animate properties that have a CSS equivalent (e.g. fill, but not cx)in the end i had to do e.g. all placement that i wanted to animate into transforms (which are animatable via CSS)
you’re right. CSS can only animate properties that have a CSS equivalent (e.g. fill, but not cx)
in the end i had to do e.g. all placement that i wanted to animate into transforms (which are animatable via CSS)
1
u/flying-sheep Jul 18 '16
i tend to use CSS transitions. they’re more performant anyway.