This commit is contained in:
Cory LaViska
2021-06-09 08:36:27 -04:00

View File

@@ -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');