Dosen原創(chuàng)
開始學習Framerjs,邊學邊翻譯,也加了一些我學習過程中的理解。寫下來留作以后查閱,看官如果發(fā)現(xiàn)有地方寫的不對請指出。轉(zhuǎn)載請聯(lián)系作者。
Animation????? 動畫
Properties of a layer can be animated, including x, y, width, height, scale, opacity, rotation and more. Multiple properties can be animated at once.
層的屬性可以被動畫,包括x,y,寬,高,縮放,透明度,旋轉(zhuǎn),等。多種屬性的動畫可以一起執(zhí)行。
這段代碼給layerA創(chuàng)建了一個透明度變?yōu)?.5的動畫。
Timing????? 時間
You can define the duration of an animation, except when using spring curves. Animations can also be delayed and repeated. All durations in Framer are defined in seconds.
你可以定義一個動畫的持續(xù)時間,除了當使用彈性曲線時。動畫可以添加延遲和重復。在Framer中所有持續(xù)都用秒為單位。
這段代碼給layerA創(chuàng)建了一個透明度變?yōu)?.5的動畫。并且使用ease這個預置的動畫曲線,動畫重復1次,延遲2秒,持續(xù)1秒。
Curves????? 曲線
Animations optionally take a curve that describe the type of animation. You can use pre-defined curves like 'linear' or 'ease-in', custom bezier curves and spring animations. Below is an overview of different curves.
動畫的類型用曲線來描述。你可以使用預定義曲線,比如“l(fā)inear”,“ease-in”,自定義貝塞爾曲線和彈性動畫。下面是不同曲線的預覽。
Summary????? 概要
Multiple properties can be animated at once
多種屬性動畫可以一起執(zhí)行。
Animations can be timed, delayed and repeated
動畫可以被定義時間,延遲,重復次數(shù)。
Framer contains various animation curves, including spring curves
Framer包含多種動畫曲線,包含彈性曲線。