|
|
|
@ -466,7 +466,7 @@ animating will the element be removed from the DOM.
|
|
|
|
|
```mjs
|
|
|
|
|
h('span', {
|
|
|
|
|
style: { opacity: '1', transition: 'opacity 1s',
|
|
|
|
|
remove: { opacity: '0' } }
|
|
|
|
|
remove: { opacity: '0' } }
|
|
|
|
|
}, 'It\'s better to fade out than to burn away');
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -477,7 +477,7 @@ This makes it easy to declaratively animate the removal of elements.
|
|
|
|
|
```mjs
|
|
|
|
|
h('span', {
|
|
|
|
|
style: { opacity: '1', transition: 'opacity 1s',
|
|
|
|
|
destroy: { opacity: '0' } }
|
|
|
|
|
destroy: { opacity: '0' } }
|
|
|
|
|
}, 'It\'s better to fade out than to burn away');
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -553,11 +553,11 @@ var sharedHandler = {
|
|
|
|
|
};
|
|
|
|
|
h('div', [
|
|
|
|
|
h('input', { props: { type: 'radio', name: 'test', value: '0' },
|
|
|
|
|
on: sharedHandler }),
|
|
|
|
|
on: sharedHandler }),
|
|
|
|
|
h('input', { props: { type: 'radio', name: 'test', value: '1' },
|
|
|
|
|
on: sharedHandler }),
|
|
|
|
|
on: sharedHandler }),
|
|
|
|
|
h('input', { props: { type: 'radio', name: 'test', value: '2' },
|
|
|
|
|
on: sharedHandler })
|
|
|
|
|
on: sharedHandler })
|
|
|
|
|
]);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -571,11 +571,11 @@ var sharedHandler = function(e){
|
|
|
|
|
};
|
|
|
|
|
h('div', [
|
|
|
|
|
h('input', { props: { type: 'radio', name: 'test', value: '0' },
|
|
|
|
|
on: { change: sharedHandler } }),
|
|
|
|
|
on: { change: sharedHandler } }),
|
|
|
|
|
h('input', { props: { type: 'radio', name: 'test', value: '1' },
|
|
|
|
|
on: { change: sharedHandler } }),
|
|
|
|
|
on: { change: sharedHandler } }),
|
|
|
|
|
h('input', { props: { type: 'radio', name: 'test', value: '2' },
|
|
|
|
|
on: { change: sharedHandler } })
|
|
|
|
|
on: { change: sharedHandler } })
|
|
|
|
|
]);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|