Coder Social home page Coder Social logo

Comments (14)

timohermans avatar timohermans commented on June 19, 2024

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.

hhff avatar hhff commented on June 19, 2024

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.

ef4 avatar ef4 commented on June 19, 2024

@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.

timohermans avatar timohermans commented on June 19, 2024

@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.

hhff avatar hhff commented on June 19, 2024

👍

from ember-infinity.

kellyselden avatar kellyselden commented on June 19, 2024

@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.

hhff avatar hhff commented on June 19, 2024

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.

timohermans avatar timohermans commented on June 19, 2024

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.

hhff avatar hhff commented on June 19, 2024

no worries ❤️

from ember-infinity.

hhff avatar hhff commented on June 19, 2024

@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.

timohermans avatar timohermans commented on June 19, 2024

@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.

hhff avatar hhff commented on June 19, 2024

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.

timohermans avatar timohermans commented on June 19, 2024

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.

hhff avatar hhff commented on June 19, 2024

ok - thanks @temo44 !

from ember-infinity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.