Skip to content

Commit 97f6cd8

Browse files
author
wangb
committed
update
1 parent 8a0f4e4 commit 97f6cd8

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: build your own transition component in vue
3+
date: 2018-03-26 09:26:58
4+
tags: vue
5+
---
6+
7+
## vue transition
8+

source/_drafts/css-transition.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: css-transition
3+
tags:
4+
---
5+
6+
1. hover: transform(perspective(500px) scaleZ(.1) translateZ(100px))
7+
2. expand content: https://stackoverflow.com/questions/3508605/how-can-i-transition-height-0-to-height-auto-using-css
8+
3. backToTop:

source/_drafts/interactjs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: interactjs
3+
tags:
4+
---

source/_drafts/vue-transition.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: vue-transition
3+
tags:
4+
---
5+
6+
- automatically apply classes for CSS transitions and animations
7+
- integrate 3rd-party CSS animation libraries, such as Animate.css
8+
- use JavaScript to directly manipulate the DOM during transition hooks
9+
- integrate 3rd-party JavaScript animation libraries, such as Velocity.js
10+
11+
12+
## single elements
13+
- conditional rendering
14+
15+
```js
16+
export default {
17+
render () {
18+
const children = this.$slots.default
19+
if (!children) {
20+
return
21+
}
22+
23+
console.assert(children.length === 1, 'only one children can be in transition')
24+
const child = children[0]
25+
26+
return child
27+
}
28+
}
29+
```

0 commit comments

Comments
 (0)