Skip to content

Commit 6e867e3

Browse files
callumacraechrisvfritz
authored andcommitted
Fix broken transition example (#624)
Padding is set to `0 !important`, so this example didn't work. It's also bad practice to transition padding unless you really have to: in this case, a transform is more performant, so I changed it to that instead.
1 parent dd41611 commit 6e867e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/transitions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ new Vue({
139139
transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
140140
}
141141
.slide-fade-enter, .slide-fade-leave-active {
142-
padding-left: 10px;
142+
transform: translateX(10px);
143143
opacity: 0;
144144
}
145145
```
@@ -169,7 +169,7 @@ new Vue({
169169
transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
170170
}
171171
.slide-fade-enter, .slide-fade-leave-active {
172-
padding-left: 10px;
172+
transform: translateX(10px);
173173
opacity: 0;
174174
}
175175
</style>

0 commit comments

Comments
 (0)