Skip to content

Commit 80e60e0

Browse files
committed
indentation fix
1 parent 85c6fb6 commit 80e60e0

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

animated-clip/menu.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -198,41 +198,41 @@ class Menu {
198198
}
199199

200200
_append ({
201-
percentage,
202-
step,
203-
startX,
204-
startY,
205-
endX,
206-
endY,
207-
outerAnimation,
208-
innerAnimation}=opts) {
209-
210-
const xScale = (startX + (endX - startX) * step).toFixed(5);
211-
const yScale = (startY + (endY - startY) * step).toFixed(5);
212-
213-
const invScaleX = (1 / xScale).toFixed(5);
214-
const invScaleY = (1 / yScale).toFixed(5);
215-
216-
outerAnimation.push(`
201+
percentage,
202+
step,
203+
startX,
204+
startY,
205+
endX,
206+
endY,
207+
outerAnimation,
208+
innerAnimation}=opts) {
209+
210+
const xScale = (startX + (endX - startX) * step).toFixed(5);
211+
const yScale = (startY + (endY - startY) * step).toFixed(5);
212+
213+
const invScaleX = (1 / xScale).toFixed(5);
214+
const invScaleY = (1 / yScale).toFixed(5);
215+
216+
outerAnimation.push(`
217217
${percentage}% {
218218
transform: scale(${xScale}, ${yScale});
219219
}`);
220220

221-
innerAnimation.push(`
221+
innerAnimation.push(`
222222
${percentage}% {
223223
transform: scale(${invScaleX}, ${invScaleY});
224224
}`);
225-
}
225+
}
226226

227-
_clamp (value, min, max) {
228-
return Math.max(min, Math.min(max, value));
229-
}
227+
_clamp (value, min, max) {
228+
return Math.max(min, Math.min(max, value));
229+
}
230230

231-
_ease (v, pow=4) {
232-
v = this._clamp(v, 0, 1);
231+
_ease (v, pow=4) {
232+
v = this._clamp(v, 0, 1);
233233

234-
return 1 - Math.pow(1 - v, pow);
235-
}
234+
return 1 - Math.pow(1 - v, pow);
236235
}
236+
}
237237

238-
new Menu()
238+
new Menu()

0 commit comments

Comments
 (0)