3 ms·
Neat! Though the point of my idea is having animated transitions between pages, by replacing contents of sticky elements and letting their CSS transitions work
by cousin_it 8y ago
Neat! Though the point of my idea is having animated transitions between pages, by replacing contents of sticky elements and letting their CSS transitions work as usual. As far as I can tell, turbolinks doesn't do that.
- detaro 8y agoI think it always replaces the entire body element, not parts of it, yes
- b_f 8y agoKinda like this? https://github.com/miguel-perez/smoothState.js https://github.com/miguel-perez/smoothState.js
- cousin_it 8y agoYeah, well... that still requires you to write custom JS. The thing I'm imagining would be based only on markup - which sticky ids exist in both pages. But the idea is really similar, thanks for the link!