Closed renjd closed 7 months ago
I have just started learning front-end technology, so the code is very ugly. Please understand and look forward to your reply!
You can take a look at the code of the example: https://github.com/alvarotrigo/vue-fullpage.js/tree/master/example
That's working properly. You can use it as a base to work on.
Also, you seem to be missing data-anchor
on section 1.
And I see you are overwriting fullPage.js styles by using position:absolute
on the slides.
You shouldn't be doing that. Otherwise fullPage.js might not work as expected.
Also, you seem to be missing
data-anchor
on section 1.
When the fullpage component is loaded, all its subcomponents are also rendered, which means that even if I add animation elements to other pages, these animations are actually played on the first page. Therefore, sliding on to the second and third pages, the animation effect is no longer visible.
And I see you are overwriting fullPage.js styles by using
position:absolute
on the slides. You shouldn't be doing that. Otherwise fullPage.js might not work as expected.
Thank you for your help. The reason is that I mixed scripts for Vue2 and Vue3, which should be the reason for this. I may not be able to express myself clearly, but I am still very grateful to you and wish you a happy life! ——A freshman student from China
Awesome that you managed to find the problem! 🥳
Regards from Spain!
Description
I have followed the document requirements but failed. I am considering whether it is due to the sub components. Please provide a solution, thank you!The relevant code is placed below: