Skip to content

Commit

Permalink
fix: clip animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvl01 committed Apr 18, 2023
1 parent ee59bdd commit 4ea10e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions clip/clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ setCSSCore(AnimePluginDefinition.CSSEffect);

import initParams from "./initParams";
import initParamsValidationRules from "./initParamsValidationRules";
import { Floating, FontSize, Top, Wave } from "./effects/incidents";
import { Floating, FontSize, Wave } from "./effects/incidents";

const clip = new HTMLClip({
html,
Expand All @@ -28,8 +28,8 @@ const clip = new HTMLClip({

clip.addIncident(Wave(".first-row .row"), 0);
clip.addIncident(Wave(".second-row .row"), 0);
clip.addIncident(Floating(".image-1", 5), 0);
clip.addIncident(Floating(".image-2", -5), 0);
clip.addIncident(Floating(".image-1", "5px"), 0);
clip.addIncident(Floating(".image-2", "-5px"), 0);
clip.addIncident(FontSize("45px", "40px", ".offer", 300, "linear"), 300);
clip.addIncident(FontSize("40px", "45px", ".offer", 300, "linear"), 600);

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@babel/eslint-parser": "7.19.1",
"@babel/preset-env": "7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@donkeyclip/motorcortex": "^9.5.6",
"@donkeyclip/motorcortex": "9.5.7",
"@donkeyclip/motorcortex-player": "2.10.7",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-commonjs": "^24.0.0",
Expand Down Expand Up @@ -60,4 +60,4 @@
"dependencies": {
"@donkeyclip/motorcortex-anime": "^3.1.1"
}
}
}

0 comments on commit 4ea10e3

Please sign in to comment.