Skip to content

Instantly share code, notes, and snippets.

@hjzheng
Last active March 24, 2016 06:41
Show Gist options
  • Save hjzheng/0c8a1c038ded5f35ec70 to your computer and use it in GitHub Desktop.
Save hjzheng/0c8a1c038ded5f35ec70 to your computer and use it in GitHub Desktop.

CSS3 动画

animation: name duration timing-function delay iteration-count direction

animation-delay	Specifies a delay for the start of an animation(设置延时)
animation-direction	Specifies whether an animation should play in reverse direction or alternate cycles
animation-duration	Specifies how many seconds or milliseconds an animation takes to complete one cycle
animation-iteration-count	Specifies the number of times an animation should be played
animation-name	Specifies the name of the @keyframes animation
animation-play-state	Specifies whether the animation is running or paused
animation-timing-function

@keyframes 用法
@keyframes NAME {
   from {
     Properties:Properties value;
   }
   Percentage {
     Properties:Properties value;
   }
   to {
     Properties:Properties value;
   }
 }
 或者全部写成百分比的形式:
 @keyframes NAME {
    0% {
       Properties:Properties value;
    }
    Percentage {
       Properties:Properties value;
    }
    100% {
       Properties:Properties value;
    }
  }

Example:

https://jsfiddle.net/hjzheng/f6hsc5wg/4/

媒体查询 和 响应式设计

hjzheng/CUF_meeting_knowledge_share#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment