hellsan631 / angular-fullpage.js

An angular directive for fullpage.js

Home Page:http://hellsan631.github.io/angular-fullpage.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flash when switching between pages.

malcolmu opened this issue · comments

Hello,

I am having a problem with this great plugin. I have 3 pages all using fullpage js and containing 5-6 sections.

I am using ngRoute/$routeProvider to serve the pages and ngAnimate to handle the page transition animations (css).

The problem is occurring when I change pages, the animations happen (ng-leave/ng-enter) but just before they finish, there is a flash of the content from the entering page which is void of the styles added by fullpage css. My guess is that the fullpage js is getting reloaded by the controller and this is causing this momentary lapse in style. Whether or not this is the case, how do I fix this?

Thanks in advance.

Same issue here.

Same issue here.

To solve, I removed the following code: element.on('$destroy', destroyFullPage);