Comments (14)
Well I fixed this issue with putting something extra in the selector:
scrollable="div.liquid-container div.velocity-animating div.scrollable"
I added div.liquid-container div.velocity-animating
. DidInsertElement is triggered twice. Both times there's only one velocity-animating
class present, which is nice.
The only issue that remains is that liquid fire destroys the scrollbar itself. It's not possible for me to scroll xD. Perhaps that's one other issue on its own.
from ember-infinity.
Thanks @temo44 ! Liquid Fire does some wild stuff that I don't quite understand. @ef4 might be able to shed some light!
from ember-infinity.
@temo44 is right about liquid-fire rendering multiple copies of your template. That is how we are able to animate between the old and new states with both states on screen at the same time.
It may take some tweaking of CSS properties, but I think you should be able to get this all working together.
from ember-infinity.
@ef4 @hhff Thanks guys. I fixed it.
I wanted the 'fade-in' animation to whatever page is being rendered after the login page. However, I wanted that fade-in over the whole page, not just the route(outlet) that was being rendered, after everything has been rendered.
So I took the custom animation example from the liquid fire tutorial page (http://ef4.github.io/liquid-fire/#/transitions/primitives). The only 'tweak' I thought that was necessary was that I put Ember.run.scheduleOnce('afterRender'....
around the animation of the new element.
So after this I started testing and the thing I mentioned about a cloned element occurred. Today, however, I noticed that the element won't be cloned when you do not animate the old element. And luckily for me, I don't even want to animate the old element :). So everything is fixed, without the use of css tweaks.
from ember-infinity.
👍
from ember-infinity.
@temo44 you might want to add a little "working with liquid-fire" section to the readme. I'm sure others will run into this at some point.
from ember-infinity.
good point @kellyselden - just gave you push to this repo, btw
@temo44 - please hit us a with a lil PR for the readme!!
from ember-infinity.
Haha bear with me @kellyselden @hhff, I've a) never contributed to a project before(as in forking and then creating a pull request) and b) am in the middle of a relocation, so I've a little spare free time.
I'll try write up something in the weekends. Thanks! :)
from ember-infinity.
no worries ❤️
from ember-infinity.
@temo44 - wanted to see if you were still down to write a little section in the Readme explaining the problem and how you got around it? Supporting Liquid Fire is super important for us :)
from ember-infinity.
@hhff I will try to write my little piece tomorrow or the day after! We created a custom infinite scrolling solution so we're going to drop ember infinity in one of the upcoming releases I'm afraid.
I will try to check up on Infinity in my free time though!
from ember-infinity.
all good @temo44 ! would love to properly understand your liquid fire fix regardless. Even if you post it here I can actually update the README
from ember-infinity.
Well, first of all I wanna apologize for the very late response. I've been really busy. Second of all, I have some bad news.
The last change that I did to our project was to just remove liquid-fire altogether. The reason for this is that in our use-case you could easily replace liquid-fire for pure css animation.
As you can read in my very first post, we used a liquid-if statement to make a transition over the entire page. However, we solved the whole duplicate element story by creating a normal if that adds a css class to the container that contains an animation. This makes the page look like it is fading in.
Now I know this won't solve the problem with normal liquid-fire transition and I'm sorry I can't be of any use in case. However, if we ever stumble across a problem like that. I will create another issue or PM @hhff. All I can say is that css animation can bring you a long way (also in terms of performance btw)
from ember-infinity.
ok - thanks @temo44 !
from ember-infinity.
Related Issues (20)
- infinity-loader needs to unhide on model change HOT 7
- model.canLoadMore not updating HOT 6
- infinityLoader renders JSON response data twice HOT 4
- isVisible is deprecated in 3.15
- 2.1.0 throws an EEXIST: file already exists on app build HOT 8
- Is it possible to use this component with a horizontal list? HOT 6
- Ember Infinity not working with latest Ember Data 3.17.0 & 3.16.0 HOT 9
- Possible issue with ember-source 3.16.2 HOT 6
- Not working in "ember-cli": "~3.4.4"? HOT 2
- Could not find plugin "proposal-class-properties". Ensure there is an entry in ./available-plugins.js for it.
- Demo link goes to 404. HOT 1
- Non-blocking model hook breaks `reachedInfinity`
- Problem with ember-in-viewport HOT 5
- Update doc examples with ES6 Classes
- devDependencies and dependencies are out of date HOT 2
- Issue with loadPrevious and scrollable HOT 2
- Will the project be supported for ember 4? HOT 2
- Error: Could not find module `@ember/polyfills` imported from `ember-in-viewport/initializers/viewport-config`
- Caching unchanged content ExtendedInfinityModel
- Side effects due to transfer ownership
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-infinity.