Animations that use only one child-div will hide any extra child-divs. #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So what's the point of this? Load Awesome's animations are very simple to use except for one point, different animations require different HTML (anywhere from 1-9 child divs). So, if you want to write a single block of html and simply switch the class to use a different animation, there could be a problem. For the most part, there is no problem as long as you have enough divs. The unused ones simply don't get styled and don't cause a problem. This is not true in cases where a single child div is expected. In those cases, any additional children are also styled. This PR ensures that only the first of those is displayed at all.
So, the purpose of this is to allow any animation to work with an html structure like: