SlideShare una empresa de Scribd logo
1 de 10
什么是动画?
Css3  transition 、 2D transform、 3D transform、animation FLASH中的动画原理:许多静止的连续性帧对应的画面,根据 时间顺序播放而产生的视觉动画,即看起来画面在动。 Flash动画的类型: ,[object Object]
动作补间动画,一种基于关键帧与关键帧而产生的动画类型, 即设 定起始关键帧和结束关键帧后,FLASH将自动完成中间动画的过渡部分, 让画面能够流畅运动。简单的动作动画——对物体位置、大小、颜色、不透明度的改变. 形状补间动画,先对关键帧中的形状指定属性,然后在后续关键帧中修改形状或者绘制另一个形状而产生的动画类型。(红旗飘动) ,[object Object]
遮罩动画,此类动画类型必须创建一个遮罩层,其特点是只有被遮罩的舞 台区域中的画面才能够看到,而没有被遮罩的区域画面则不可视。,[object Object]
关于此模板 Css3动画相关的几个知识点: Css3  transition:平滑的改变CSS属性的值。 (简单的实例:对物体位置、大小、颜色、不透明度的改变。) Css3  2D transform:对物体进行二维的变换,对物体移动、旋转、缩放、 倾斜 Css3  3D transform:对物体进行三维的变换。 Css3  animation:具有较为全面动画步骤。 自定义徽标 浏览器的支持情况
示例幻灯片 Css3 transition: transition-property :none | all | background,…… 指定参与过渡的可变换css属性 transition-duration:*指定这个过渡的持续时间 transition-timing-function:*指定过渡速度方程 ,有linear| ease| ease-in | ease-out | ease-in-out | cubic-bezier transition-delay:* 延迟过渡时间 Linear |ease  | ease-in | ease-out | ease-in-out都是从cubic-bezier ( <number>, <number>, <number>, <number>) 三次贝塞尔曲线根据特殊参数变换形成的方程。…… Ease-in 表示过渡速度先慢后快 Ease-in-out 表示过渡速度慢快交替 Ease-out 表示过渡舒服先快后慢 http://xiebiji.com/works/mt1.2cn/Docs/index.html#Fx/Fx.Transitions http://zengrong.net/post/1151.htmmotools动画函数 http://blog.lipte.com/archives/54贝塞尔曲线
示例幻灯片 Css3 2d transform: transform-origin: x,y (变形原点,也就是该元素围绕着那个点变形或旋转, left、right、top、center、bottom) transform-property :transform-function…… 比如: translate(80px, 80px)偏移 scale(1.5, 1.5)缩放 rotate(45deg)旋转 skew(35deg,35deg)斜切 Matrix(x……)矩阵变换,就是基于X和Y 坐标重新定位元素,它使用6个参数 http://www.cnblogs.com/winter-cn/archive/2010/12/29/1919266.html数学原理 http://zh.wikipedia.org/zh-cn/%E5%8F%98%E6%8D%A2%E7%9F%A9%E9%98%B5变换矩阵
示例幻灯片 Css3 3d transform: transform-style: flat | preserve-3d  变换的类型 Perspective: none | <number>变换视觉角度 Perspective-orgin:变换视觉角度原点 backface-visibility:visible | hidden背割面是否可见 transform-property :transform-function…… 比如: translate3d(x, y, z)偏移 scale( x, y , z)缩放 rotate3d(x,y,z,45deg)旋转 --rotateX(45deg), rotateY(45deg), rotateZ(45deg) skew(35deg,35deg)斜切 例子:
示例幻灯片 Css3 animation:只在webkit核心的浏览器上起作用 @keyframes “关键帧”{           (关键帧的时间函数) n%{ property:value; animation-timing-function:ease;}   from{property:value; } to{property:value; } } animation-name:*关键帧 (可以有多个关键帧) animation-duration:*指动画的持续时间 animation-timing-function:*指定动画速度方程 animation-iteration-count:*动画循环播放的次数 animation-direction:*动画播放的方向,是否倒着播放.normal | alternate animation-play-state:*播放状态 running | paused  animation-delay:*延迟过渡时间 http://www.zhangxinxu.com/study/201011/css3-transition-animate-demo-6.html
Js 动画的影响 js原理 所谓动画,就是在一段时间内,通过 click,focus,mousemove,mouseover,mouseout事件连续改变 DOM 元素的属性。 JavaScript 实现动画,最传统的方法就是采用定时器,在一段时间内(duration 时长),遵循特定规律(easing 平滑函数),改变 DOM 元素的属性(props, 最常见的是 style),在动画结束时,触发回调(callback)。一个典型的接口如下: Varanim = new Anim(elem, props, duration, easing, callback);  anim.run();  有了 CSS3 Transitions之后,传统方法中的定时器变得多余,我们只需: elem.style.transition = 'props duration time-function'; elem.style.cssText += ';' + targetStyle;  这样就能调用浏览器原生的 transitions 将元素从当前样式逐步过渡到最终样式,这就是动画!

Más contenido relacionado

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Css3 transition

  • 2.
  • 3.
  • 4.
  • 5. 关于此模板 Css3动画相关的几个知识点: Css3 transition:平滑的改变CSS属性的值。 (简单的实例:对物体位置、大小、颜色、不透明度的改变。) Css3 2D transform:对物体进行二维的变换,对物体移动、旋转、缩放、 倾斜 Css3 3D transform:对物体进行三维的变换。 Css3 animation:具有较为全面动画步骤。 自定义徽标 浏览器的支持情况
  • 6. 示例幻灯片 Css3 transition: transition-property :none | all | background,…… 指定参与过渡的可变换css属性 transition-duration:*指定这个过渡的持续时间 transition-timing-function:*指定过渡速度方程 ,有linear| ease| ease-in | ease-out | ease-in-out | cubic-bezier transition-delay:* 延迟过渡时间 Linear |ease | ease-in | ease-out | ease-in-out都是从cubic-bezier ( <number>, <number>, <number>, <number>) 三次贝塞尔曲线根据特殊参数变换形成的方程。…… Ease-in 表示过渡速度先慢后快 Ease-in-out 表示过渡速度慢快交替 Ease-out 表示过渡舒服先快后慢 http://xiebiji.com/works/mt1.2cn/Docs/index.html#Fx/Fx.Transitions http://zengrong.net/post/1151.htmmotools动画函数 http://blog.lipte.com/archives/54贝塞尔曲线
  • 7. 示例幻灯片 Css3 2d transform: transform-origin: x,y (变形原点,也就是该元素围绕着那个点变形或旋转, left、right、top、center、bottom) transform-property :transform-function…… 比如: translate(80px, 80px)偏移 scale(1.5, 1.5)缩放 rotate(45deg)旋转 skew(35deg,35deg)斜切 Matrix(x……)矩阵变换,就是基于X和Y 坐标重新定位元素,它使用6个参数 http://www.cnblogs.com/winter-cn/archive/2010/12/29/1919266.html数学原理 http://zh.wikipedia.org/zh-cn/%E5%8F%98%E6%8D%A2%E7%9F%A9%E9%98%B5变换矩阵
  • 8. 示例幻灯片 Css3 3d transform: transform-style: flat | preserve-3d 变换的类型 Perspective: none | <number>变换视觉角度 Perspective-orgin:变换视觉角度原点 backface-visibility:visible | hidden背割面是否可见 transform-property :transform-function…… 比如: translate3d(x, y, z)偏移 scale( x, y , z)缩放 rotate3d(x,y,z,45deg)旋转 --rotateX(45deg), rotateY(45deg), rotateZ(45deg) skew(35deg,35deg)斜切 例子:
  • 9. 示例幻灯片 Css3 animation:只在webkit核心的浏览器上起作用 @keyframes “关键帧”{ (关键帧的时间函数) n%{ property:value; animation-timing-function:ease;} from{property:value; } to{property:value; } } animation-name:*关键帧 (可以有多个关键帧) animation-duration:*指动画的持续时间 animation-timing-function:*指定动画速度方程 animation-iteration-count:*动画循环播放的次数 animation-direction:*动画播放的方向,是否倒着播放.normal | alternate animation-play-state:*播放状态 running | paused animation-delay:*延迟过渡时间 http://www.zhangxinxu.com/study/201011/css3-transition-animate-demo-6.html
  • 10. Js 动画的影响 js原理 所谓动画,就是在一段时间内,通过 click,focus,mousemove,mouseover,mouseout事件连续改变 DOM 元素的属性。 JavaScript 实现动画,最传统的方法就是采用定时器,在一段时间内(duration 时长),遵循特定规律(easing 平滑函数),改变 DOM 元素的属性(props, 最常见的是 style),在动画结束时,触发回调(callback)。一个典型的接口如下: Varanim = new Anim(elem, props, duration, easing, callback); anim.run(); 有了 CSS3 Transitions之后,传统方法中的定时器变得多余,我们只需: elem.style.transition = 'props duration time-function'; elem.style.cssText += ';' + targetStyle; 这样就能调用浏览器原生的 transitions 将元素从当前样式逐步过渡到最终样式,这就是动画!
  • 11. css3 动画的应用 http://www.webdesignerwall.com/trends/47-amazing-css3-animation-demos/ http://www.dmxzone.com/demo/dmxAnimator/effects/slide_out_menu.html http://webkit.org/blog-files/3d-transforms/poster-circle.html 数学公式、空间想象力、美工功底、实践能力、纠结的精神