kopia lustrzana https://github.com/shoelace-style/shoelace
Fix import path (#463)
rodzic
f7bcd89b97
commit
cd23b9ebfe
|
@ -116,7 +116,7 @@ To customize a default animation, use the `setDefaultAnimation()` method. The fu
|
|||
This example will make all dialogs use a custom show animation.
|
||||
|
||||
```js
|
||||
import { setDefaultAnimation } from '/dist/utilities/animation-registry.js';
|
||||
import { setDefaultAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';
|
||||
|
||||
// Change the default animation for all dialogs
|
||||
setDefaultAnimation('dialog.show', {
|
||||
|
@ -135,7 +135,7 @@ If you only want to target a single component, use the `setAnimation()` method i
|
|||
In this example, only the target dialog will use a custom show animation.
|
||||
|
||||
```js
|
||||
import { setAnimation } from '/dist/utilities/animation-registry.js';
|
||||
import { setAnimation } from '@shoelace-style/shoelace/dist/utilities/animation-registry.js';
|
||||
|
||||
// Change the animation for a single dialog
|
||||
const dialog = document.querySelector('#my-dialog');
|
||||
|
|
Ładowanie…
Reference in New Issue