i have a template code like this
this is my script code
data () { return { loadPage: true } }, mounted () { this.loadPage = true }, this is my styling code
#app{ width: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; } I want to set a class/Id styling after it is mounted (setting their opacity to 1) Is there any simple way to accomplish this? Examples would be appreciated
https://stackoverflow.com/questions/66702107/how-to-add-styling-when-app-is-mounted-vue-js March 19, 2021 at 11:24AM
没有评论:
发表评论