Giter Site home page Giter Site logo

rotary-draw's Introduction

-

闲来无事,做个转盘抽奖玩玩,😍

技术总结:

实现转盘主要是依赖了 CSS3的动画、和过渡。 tansform:rotate(xxdeg) 旋转多少度。 ##transition:property duration timing-function delay;

	#transition-property:none|all|property;
	 	none:没有属性获得过度效果
	 	all:所有属性都将获得过度效果
	 	property:定义应用过渡效果的 CSS 属性名称列表,列表以逗号分隔。

	#transition-duration: time;


	#transition-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(n,n,n,n);
		linear:规定以相同速度开始至结束的过渡效果
		ease:规定慢速开始,然后变快,然后慢速结束的过渡效果
		ease-in:规定以慢速开始的过渡效果
		ease-out:规定以慢速结束的过渡效果
		ease-in-out:规定以慢速开始和结束的过渡效果
		cubic-bezier(n,n,n,n):在 cubic-bezier 函数中定义自己的值。可能的值是 0 至 1 之间的数值.


	#transition-delay:time 指定秒或毫秒数之前要等待切换效果开始

rotary-draw's People

Contributors

lzy308516024 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.