-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2b7633
commit 979edb2
Showing
199 changed files
with
394 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import type { ProgressTimeline } from '../render/dom/scroll/observe'; | ||
import type { ProgressTimeline } from '../render/dom/scroll/observe.svelte'; | ||
import { supportsScrollTimeline } from '../render/dom/scroll/supports'; | ||
import type { AnimationPlaybackControls } from './types'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { spring } from '../generators/spring'; | ||
import { createAnimationsFromSequence } from '../sequence/create'; | ||
import type { AnimationSequence, SequenceOptions } from '../sequence/types'; | ||
import { spring } from '../generators/spring/index.svelte'; | ||
import { createAnimationsFromSequence } from '../sequence/create.svelte'; | ||
import type { AnimationSequence, SequenceOptions } from '../sequence/types.svelte'; | ||
import type { AnimationPlaybackControls, AnimationScope } from '../types'; | ||
import { animateSubject } from './subject'; | ||
import { animateSubject } from './subject.svelte'; | ||
|
||
export function animateSequence(sequence: AnimationSequence, options?: SequenceOptions, scope?: AnimationScope) { | ||
const animations: AnimationPlaybackControls[] = []; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { animateMotionValue } from '../interfaces/motion-value'; | ||
import { motionValue as createMotionValue, type MotionValue } from '../../value'; | ||
import { animateMotionValue } from '../interfaces/motion-value.svelte'; | ||
import { motionValue as createMotionValue, type MotionValue } from '../../value/index.svelte'; | ||
import { isMotionValue } from '../../value/utils/is-motion-value'; | ||
import type { GenericKeyframesTarget } from '../../types'; | ||
import type { AnimationPlaybackControls, ValueAnimationTransition } from '../types'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { visualElementStore } from '../../render/store'; | ||
import { visualElementStore } from '../../render/store.svelte'; | ||
import type { GenericKeyframesTarget, TargetAndTransition } from '../../types'; | ||
import { invariant } from '../../utils/errors'; | ||
import type { MotionValue } from '../../value'; | ||
import type { MotionValue } from '../../value/index.svelte'; | ||
import { isMotionValue } from '../../value/utils/is-motion-value'; | ||
import { animateTarget } from '../interfaces/visual-element-target'; | ||
import type { ObjectTarget } from '../sequence/types'; | ||
import { animateTarget } from '../interfaces/visual-element-target.svelte'; | ||
import type { ObjectTarget } from '../sequence/types.svelte'; | ||
import type { | ||
AnimationPlaybackControls, | ||
AnimationScope, | ||
|
@@ -18,10 +18,10 @@ import type { | |
ElementOrSelector, | ||
ValueAnimationTransition, | ||
} from '../types'; | ||
import { createDOMVisualElement, createObjectVisualElement } from '../utils/create-visual-element'; | ||
import { createDOMVisualElement, createObjectVisualElement } from '../utils/create-visual-element.svelte'; | ||
import { isDOMKeyframes } from '../utils/is-dom-keyframes'; | ||
import { resolveSubjects } from './resolve-subjects'; | ||
import { animateSingleValue } from './single-value'; | ||
import { resolveSubjects } from './resolve-subjects.svelte'; | ||
import { animateSingleValue } from './single-value.svelte'; | ||
|
||
export type AnimationSubject = Element | MotionValue<any> | any; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { time } from '../../frameloop/sync-time'; | ||
import { time } from '../../frameloop/sync-time.svelte'; | ||
import { | ||
type KeyframeResolver, | ||
type ResolvedKeyframes, | ||
|
@@ -16,8 +16,8 @@ import type { | |
ValueAnimationOptions, | ||
ValueAnimationOptionsWithRenderContext, | ||
} from '../types'; | ||
import { canAnimate } from './utils/can-animate'; | ||
import { getFinalKeyframe } from './waapi/utils/get-final-keyframe'; | ||
import { canAnimate } from './utils/can-animate.svelte'; | ||
import { getFinalKeyframe } from './waapi/utils/get-final-keyframe.svelte'; | ||
|
||
/** | ||
* Maximum time allowed between an animation being created and it being | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { startWaapiAnimation } from '.'; | ||
import { startWaapiAnimation } from './index.svelte'; | ||
import { createGeneratorEasing } from '../../../easing/utils/create-generator-easing'; | ||
import type { ProgressTimeline } from '../../../render/dom/scroll/observe'; | ||
import type { ProgressTimeline } from '../../../render/dom/scroll/observe.svelte'; | ||
import { browserNumberValueTypes } from '../../../render/dom/value-types/number-browser'; | ||
import { invariant } from '../../../utils/errors'; | ||
import { noop } from '../../../utils/noop'; | ||
|
@@ -18,12 +18,12 @@ import type { | |
ValueKeyframe, | ||
ValueKeyframesDefinition, | ||
} from '../../types'; | ||
import { attachTimeline } from './utils/attach-timeline'; | ||
import { getFinalKeyframe } from './utils/get-final-keyframe'; | ||
import { setCSSVar, setStyle } from './utils/style'; | ||
import { supportsLinearEasing } from './utils/supports-linear-easing'; | ||
import { supportsPartialKeyframes } from './utils/supports-partial-keyframes'; | ||
import { supportsWaapi } from './utils/supports-waapi'; | ||
import { attachTimeline } from './utils/attach-timeline.svelte'; | ||
import { getFinalKeyframe } from './utils/get-final-keyframe.svelte'; | ||
import { setCSSVar, setStyle } from './utils/style.svelte'; | ||
import { supportsLinearEasing } from './utils/supports-linear-easing.svelte'; | ||
import { supportsPartialKeyframes } from './utils/supports-partial-keyframes.svelte'; | ||
import { supportsWaapi } from './utils/supports-waapi.svelte'; | ||
|
||
const state = new WeakMap<Element, Map<string, NativeAnimation>>(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import type { MotionValue } from '../../../value'; | ||
import { GroupPlaybackControls } from '../../GroupPlaybackControls'; | ||
import { createAnimationsFromSequence } from '../../sequence/create'; | ||
import type { AnimationSequence, SequenceOptions } from '../../sequence/types'; | ||
import type { MotionValue } from '../../../value/index.svelte'; | ||
import { GroupPlaybackControls } from '../../GroupPlaybackControls.svelte'; | ||
import { createAnimationsFromSequence } from '../../sequence/create.svelte'; | ||
import type { AnimationSequence, SequenceOptions } from '../../sequence/types.svelte'; | ||
import type { AnimationPlaybackControls, ElementOrSelector } from '../../types'; | ||
import { animateElements } from './animate-elements'; | ||
import { animateElements } from './animate-elements.svelte'; | ||
|
||
export function animateSequence(definition: AnimationSequence, options?: SequenceOptions) { | ||
const animations: AnimationPlaybackControls[] = []; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { GroupPlaybackControls } from '../../GroupPlaybackControls'; | ||
import { GroupPlaybackControls } from '../../GroupPlaybackControls.svelte'; | ||
import type { AnimationScope, DOMKeyframesDefinition, DynamicAnimationOptions, ElementOrSelector } from '../../types'; | ||
import { animateElements } from './animate-elements'; | ||
import { animateElements } from './animate-elements.svelte'; | ||
|
||
export const createScopedWaapiAnimate = (scope?: AnimationScope) => { | ||
function scopedAnimate( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { mapEasingToNativeEasing } from './easing'; | ||
import { mapEasingToNativeEasing } from './easing.svelte'; | ||
import type { NativeAnimationOptions } from './types'; | ||
|
||
export function startWaapiAnimation( | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import { memoSupports } from './memo-supports'; | ||
import { memoSupports } from './memo-supports.svelte'; | ||
|
||
export const supportsLinearEasing = /*@__PURE__*/ memoSupports(() => { | ||
try { | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ based on [email protected], | |
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
|
||
import type { AnimationState, KeyframeGenerator } from './types'; | ||
import { spring as createSpring } from './spring'; | ||
import type { AnimationState, KeyframeGenerator } from './types.svelte'; | ||
import { spring as createSpring } from './spring/index.svelte'; | ||
import type { ValueAnimationOptions } from '../types'; | ||
import { calcGeneratorVelocity } from './utils/velocity'; | ||
import { calcGeneratorVelocity } from './utils/velocity.svelte'; | ||
|
||
export function inertia({ | ||
keyframes, | ||
|
Oops, something went wrong.