Skip to content

Commit

Permalink
chore: re-put the position of animations
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepbox8646 committed Jun 5, 2024
1 parent 68f4eda commit ef9cfbe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ const {

const app = createApp(document.querySelector('#milestone'))

const circle = use(nc.createRect(100, 100, {
const circle = use(nc.createCircle(100, {
x: 0,
y: 0,
}))
// circle.animate(nc.move(100, 100)(120))

const scene = nc.createScene(
circle.animate(nc.fadeOut()(1))
circle
)

app.checkout(scene)
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions packages/basic/src/animations/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export * from './move'
export * from './create'
export * from './destroy'
export * from './fadeIn'
export * from './fadeOut'
export * from './fade/fadeIn'
export * from './fade/fadeOut'
export * from './move'
export * from './roomIn'
export * from './roomOut'
export * from './room/roomIn'
export * from './room/roomOut'
export * from './rotate'
export * from './scale'
File renamed without changes.
File renamed without changes.

0 comments on commit ef9cfbe

Please sign in to comment.