Каталог файловtilda-animation-sbs-1.0.js
101 * @typedef {102 * {103 * di: string | undefined,104 * ti: string | undefined,105 * mx: string,106 * my: string,107 * sx: string,108 * sy: string,109 * op: string,110 * ro: string,111 * cl: string | undefined,112 * bg: string | undefined,113
История файла и сравнение версий
* fl: string | undefined,
114 * st: string | undefined, 115 * fi: '' | 'fixed' | undefined, 117 * ea: '' | 'easeIn' | 'easeOut' | 'easeInOut' | 'bounceFin', 118 * dt: string | undefined, 119 * dd: string | undefined, 125 * Стили шага, создаются в t_animationSBS__createStepStyles. Значения те же, что у ключей шага, 126 * но с понятными названиями: 'moveX' вместо 'mx'. 128 * Все ключи, кроме color, bgColor, fill, stroke и fix, - числа (в шаге они строки). 130 * Ключи 'color', 'bgColor', 'fill' и 'stroke' содержат распарсенный цвет, null - собственный цвет элемента. 131 * В 'color' и 'bgColor' может быть градиент, см. t_animationSBS__parsePaint. 132 * Ключ 'fix' - boolean: true, если у шага ключ 'fi' равен 'fixed'. 143 * color: sbsRGBA | sbsGradient | null, 144 * bgColor: sbsRGBA | sbsGradient | null, 145 * fill: sbsRGBA | null, 146 * stroke: sbsRGBA | null, 153 * step for animated HTMLElement. Difference between this step and animationStep is as follows: 154 * 1. animationStep - it's parsed object from data-attribute, 155 * animatedStepToElement - object, created in t_animationSBS__cacheAndSetData() 156 * 2. animatedStepToElement more readeble then animationStep 157 * 3. animatedStepToElement placed inside AnimatedHTML (key-array 'steps') 159 * Summary: animatedStepToElement parse as step value with more readeble parameters, then animationStep, 160 * and placed inside AnimatedHTML.steps array 164 * state: 'started' | 'finished' | 'unactive', 165 * styles: stepStyles, 166 * prevUnfixedDist: number, 168 * start: number | undefined, 169 * end: number | undefined, 170 * time: string | undefined, 171 * ease: '' | 'easeIn' | 'easeOut' | 'easeInOut' | 'bounceFin' | undefined 173 * } animatedStepToElement 177 * Состояние элемента с анимацией по скроллу, пересчитывается на каждое изменение скролла. 178 * colors - текущие цвета каждой цели анимации цвета, стартуют с собственных цветов узлов 185 * fixedShiftY: number, 186 * translateX: number, 187 * translateY: number, 191 * colors: {target: sbsColorTarget, color: sbsRGBA | sbsPaintState | undefined, bgColor: sbsRGBA | sbsPaintState | undefined, fill: sbsRGBA | sbsShapeUrlPaint | undefined, stroke: sbsRGBA | sbsShapeUrlPaint | undefined}[], 192 * prevUnfixedDist: number | undefined 194 * } scrollElementState 198 * Узел, у которого анимируется color/background-color по ключам шагов 'cl' и 'bg', 199 * или группа фигур вектора, у которых анимируется fill/stroke по ключам 'fl' и 'st'. 200 * node - узел цели, у группы фигур его нет