CSS animations
{{Short description|CSS3 properties that would let some HTML elements animate}}
{{update|date=July 2017}}
{{Infobox technology standard
| title = CSS Animations
| long_name = CSS Animations Level 1
| native_name = CSS Animations
| native_name_lang = en
| image = Contra-zoom_aka_dolly_zoom_animation.svg{{!}}link={{filepath:Contra-zoom_aka_dolly_zoom_animation.svg}}|
| caption = [{{filepath:Contra-zoom_aka_dolly_zoom_animation.svg}} Interactive SVG] using a hover effect
| status = W3C Working Draft
| year_started =
| first_published = {{Start date|2009|03|20|df=y}}{{Cite web|url=https://www.w3.org/standards/history/css-animations-1|title=CSS Animations Level 1 Publication History - W3C|website=W3C|date=n.d.|access-date=2021-04-09}}
| version = Level 1
| version_date = {{Start date|2023|03|02}}{{Cite web|url=https://www.w3.org/TR/css-animations-1/|title=CSS Animations Level 1|publisher=CSS Working Group|collaboration=CSS Working Group|website=W3C|date=2023-03-02|access-date=2023-03-26
|editor-first1=Dean|editor-last1=Jackson
|editor-first2=L. David|editor-last2=Baron
|editor-first3=Tab|editor-last3=Atkins Jr.
|editor-first4=Brian|editor-last4=Birtles
|editor-first5=David|editor-last5=Hyatt
|editor-first6=Chris|editor-last6=Marrin
|editor-first7=Sylvain|editor-last7=Galineau
}}
| preview = Level 2
| preview_date = {{Start date|2023|03|02}}{{Cite web|url=https://www.w3.org/TR/2023/WD-css-animations-2-20230302/|title=CSS Animations Level 2|website=CSS Working Group Editor Drafts|date=2023-03-02|access-date=2023-03-26|collaboration=CSS Working Group
|editor-first=L. David|editor-last=Baron
|editor-first2=Brian|editor-last2=Birtles
}}
| organization = World Wide Web Consortium
| committee = CSS Working Group
| editors = {{Plainlist|
- Dean Jackson
- L. David Baron
- Tab Atkins Jr.
- Brian Birtles
- David Hyatt
- Chris Marrin
- Sylvain Galineau
| authors =
| base_standards = CSS
| related_standards =
| abbreviation = CSS-ANIMATIONS-1
| domain = CSS
| license =
| website = {{URL|https://www.w3.org/TR/css-animations-1/}}
}}
{{CSS}}
CSS animations is a module for Cascading Style Sheets that allows the animation of HTML document elements using CSS.
History
While the pseudo-class :hover
has been used to generate rudimentary animations for years, extensions of CSS into the realm of animation were minimal until the late 2000s decade. As early as 2007, WebKit had announced its intent to include CSS animation, transitions, and transforms as features of WebKit. It also announced the implementation of both implicit and explicit animation through CSS in February 2009. CSS animation has also been put forth as a feature of CSS3, the ongoing draft specification managed by the World Wide Web Consortium (W3C).
Current
CSS Animations is a module of Cascading Style Sheets. It allows users to hover over objects and an animation will play. Currently, it is adopted by all major search engines. Despite the controversy from those who prefer animation via Javascript, the hover tag is now widely used across the Cascading Style Sheets community.
Scalable Vector Graphics
File:Epicyclic gearing animation.svg using CSS 3]]
{{main|SVG animation#SVG animation using CSS}}
In addition to hover, Scalable Vector Graphics supports the @keyframes
at-rule, allowing a limited set of transformations to be animated. Firefox and Chrome used the @-moz-keyframes
and @-webkit-keyframes
extensions, respectively, before @keyframes
was added to the CSS 3 specification.
Browser support
As of June 2011, Firefox 5 includes CSS animations support.{{citation|url=https://www.mozilla.com/en-US/firefox/5.0/releasenotes/|archive-url=https://web.archive.org/web/20110811044717/https://www.mozilla.com/en-US/firefox/5.0/releasenotes/|url-status=bot: unknown|title=Mozilla Firefox Release Notes|date=2011-06-21|archive-date=2011-08-11|access-date=2021-04-09|publisher=The Mozilla Foundation}} CSS animation is also available as a module in the nightly builds of WebKit as well as Google Chrome, Safari 4 and 5 and Safari for iOS (iPhone, iPod Touch, iPad), Android versions 2.x and 3.x, Internet Explorer 10+ and Microsoft Edge browser, the BlackBerry OS 6 web browser, with the -webkit-
prefix.{{citation|url=http://webkit.org/blog/138/css-animation/|title=CSS Animation {{!}} WebKit|first=Dave|last=Hyatt |date=2007-10-31|access-date=2021-04-09|publisher=Surfin’ Safari|website=WebKit}}{{citation|url=http://webkit.org/blog/324/css-animation-2/ |title=CSS Animation {{!}} WebKit|first=Dean|last=Jackson|date=2009-02-05|access-date=2021-04-09|publisher=Surfin’ Safari|website=WebKit}}{{citation |url=https://msdn.microsoft.com/en-us/ie/hh772747(v=vs.94)|archive-url=https://web.archive.org/web/20181126005534/https://msdn.microsoft.com/en-us/ie/hh772747(v=vs.94)|url-status=dead|date=2018-11-25|archive-date=2018-11-26|access-date=2021-04-09|title=@keyframes rule (Internet Explorer)|publisher=Microsoft|website=Microsoft Docs}} It is also used in iTunes 9 to support iTunes LP files.
Controversy
Early on in the development of the CSS animation it had drawn concern from those who prefer animation via JavaScript{{citation |url=http://snook.ca/archives/javascript/css_animations_in_safari/|archive-url=https://web.archive.org/web/20210127175208/http://snook.ca/archives/javascript/css_animations_in_safari/|url-status=live|archive-date=2021-01-27|title=CSS Animations in Safari |first=Jonathan |last=Snook |publisher=Snook.ca |date=2007-10-31|access-date=2021-04-09}} or, to a lesser-used extent, Synchronized Multimedia Integration Language (SMIL); others have claimed that it is a move by Apple Inc., the main sponsor of the WebKit project, to sidestep the inclusion of Adobe Flash (and the incumbent Flash animations) on the company's iOS line of mobile devices which use Safari.{{citation |url=http://www.macrumors.com/2009/02/06/css-animation-coming-to-safari-already-in-iphone-less-dependence-on-flash/ |title=CSS Animation Coming to Safari, Already in iPhone. Less Dependence on Flash? |publisher=MacRumors.com |date=2009-02-06 |access-date=2021-04-09 |first=Arnold |last=Kim}}{{citation |url=http://www.tuaw.com/2009/02/06/css-animation-to-replace-need-for-flash-in-mobilesafari-not-lik/ |title=CSS Animation to replace need for Flash in MobileSafari? Not likely |publisher=The Unofficial Apple Weblog |date=2009-02-06 |access-date=2021-04-09 |first=Robert |last=Palmer|archive-url=https://web.archive.org/web/20090209223736/http://www.tuaw.com/2009/02/06/css-animation-to-replace-need-for-flash-in-mobilesafari-not-lik/|archive-date=2009-02-09|url-status=dead}}{{citation |url=http://www.applethoughts.com/news/show/92481/css-animations-a-flash-substitute.html |title=CSS Animations: A Flash Substitute? |publisher=Apple Thoughts |date=2009-02-09 |access-date=2021-04-09 |first=Vincent |last=Ferrari}} Furthermore, although Cascading Style Sheets is a relatively easy to use programming language, many programmers still struggle with making animations. With this problem, several individuals and websites have developed and created open source CSS button animations with code{{cite web|url=https://buttonanimations.github.io/|title=Button Animations CSS (w/ code)|website=ButtonAnimations|author=ButtonAnimations|date=2019-12-11|access-date=2021-04-09}} for users to copy. However, even with these previous controversies, CSS animations can be predominantly found and widely used across the internet.
See also
References
{{Reflist}}
External links
- [https://web.archive.org/web/20080430041229/http://webkit.org/specs/CSSVisualEffects/CSSAnimation.html Initial Apple Proposal]
{{Animation}}
{{W3C standards}}
{{DEFAULTSORT:CSS animations}}
Category:Cascading Style Sheets
{{comm-design-stub}}