Skip to content

Commit

Permalink
Fixed typo in code block of transition documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandergeest committed May 7, 2024
1 parent c07b042 commit 963fc2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/transitions_animations/transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We did learn how to _reactively_ changes values and trigger rerenders based on t
```js
export default Blits('Gold', {
template: `
<Element color="gold" w="100" h="100" :x="$x" :y=:"$y" />
<Element color="gold" w="100" h="100" :x="$x" :y="$y" />
`,
state() {
return {
Expand All @@ -35,7 +35,7 @@ Blits offers an easy and intuitive way to apply transitions. All you need to do
```js
export default Blits('Gold', {
template: `
<Element color="gold" w="100" h="100" :x.transition="$x" :y.transition=:"$y" />
<Element color="gold" w="100" h="100" :x.transition="$x" :y.transition="$y" />
`,
state() {
return {
Expand Down Expand Up @@ -74,7 +74,7 @@ Furthermore, you can specify:
```xml
<Element color="gold" w="100" h="100"
:x.transition="{value: $x, duration: 300, easing: 'ease-in-back', delay: 400}"
:y.transition=:"{value: $x, duration: 300, easing: 'cubic-bezier(1,-0.64,0.39,1.44)'}">
:y.transition="{value: $x, duration: 300, easing: 'cubic-bezier(1,-0.64,0.39,1.44)'}">
</Element>
```
Expand Down

0 comments on commit 963fc2c

Please sign in to comment.