New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage in Vue.js #8
Comments
Closing, due to inactivity. Reopen, when needed. |
Where would you import the Css? |
Not animating in using Vue 3, opacity stays at 0 |
You have to execute the command in the respective component. This works: <script setup lang="ts">
import sal from 'sal.js'
import { onMounted } from 'vue';
onMounted(() => {
sal();
});
</script>
<style>
@import '/node_modules/sal.js/dist/sal.css';
</style> |
you can globally set sal.js by adding following code in main.ts/main.js
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, there is no problem. I just want people to know how to use Sal.js in Vue.js.
After installing Sal with npm, call Sal by using
import sal from "sal.js";
in
<script>
tag, then usemethod. After that you can use Sal attributes but do not forget to import Sal.css!
The text was updated successfully, but these errors were encountered: