Skip to content

Commit 941003a

Browse files
committed
Cleaning branch
1 parent 3290168 commit 941003a

File tree

5 files changed

+12
-15
lines changed

5 files changed

+12
-15
lines changed

dev/examples/Events-whileHover-unit-conversion.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@ const style = {
1111
background: "white",
1212
}
1313

14-
export const App = () => {
15-
const [translateX, setTranslateX] = React.useState("0%")
16-
17-
React.useEffect(() => {
18-
setTimeout(() => setTranslateX("50%"), 1000)
19-
}, [])
14+
const container = {
15+
hidden: { width: 10 },
16+
visible: {
17+
width: "100%",
18+
},
19+
}
2020

21+
export const App = () => {
2122
return (
2223
<motion.div
23-
onUpdate={console.log}
24-
animate={{ translateX }}
25-
style={{ ...style }}
24+
variants={container}
25+
initial="hidden"
26+
whileHover="visible"
27+
style={style}
2628
/>
2729
)
2830
}

packages/framer-motion/src/animation/animators/js/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ export function animateValue<V = number>({
9494
keyframes = [0, 100] as any
9595
}
9696

97-
console.log(keyframes)
98-
9997
const generator = generatorFactory({ ...options, keyframes })
10098

10199
let mirroredGenerator: KeyframeGenerator<unknown> | undefined

packages/framer-motion/src/animation/interfaces/visual-element-target.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ export function animateTarget(
5353
const value = visualElement.getValue(key)
5454
const valueTarget = target[key]
5555

56-
console.log(value?.get())
57-
5856
if (
5957
!value ||
6058
valueTarget === undefined ||

packages/framer-motion/src/render/dom/DOMVisualElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export abstract class DOMVisualElement<
4242
isMounted: boolean
4343
): TargetAndTransition {
4444
let origin = getOrigin(target as any, transition || {}, this)
45-
console.log({ origin })
45+
4646
/**
4747
* If Framer has provided a function to convert `Color` etc value types, convert them
4848
*/

packages/framer-motion/src/render/html/HTMLVisualElement.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export class HTMLVisualElement extends DOMVisualElement<
3232
): string | number | null | undefined {
3333
if (transformProps.has(key)) {
3434
const defaultType = getDefaultValueType(key)
35-
console.log(key, defaultType)
3635
return defaultType ? defaultType.default || 0 : 0
3736
} else {
3837
const computedStyle = getComputedStyle(instance)

0 commit comments

Comments
 (0)