Comments (4)
Hey, and thanks for the kind words! And also for the detailed issue description.
Yeah, I see that we are not acting like web browsers here. In fact, we haven't really made any considerations for multiple animation values acting on the same properties. That's a use case I haven't come across yet, so we simply don't handle that in any particular way.
Just to be clear, we should support multiple animation values more generally, I added a test here just be sure that it works as expected in a more straightforward case: 559d84a
I might look to see if we can do something about this without too large changes. For now though, I'd suggest that you use a single set of keyframes if you can, e.g.:
@keyframes fadeinout {
20%, 80% {
opacity: 1;
visibility: visible;
}
}
.fadeinout {
opacity: 0;
visibility: hidden;
animation: 5s fadeinout;
}
I would also say that in the example you posted, the element is visible with full opacity before and after the animation, so it has a sharp transition which could be problematic. The above example should be more stable in this regard.
from rmlui.
Single set of keyframes works very well for me! Sorry, I'm not really proficient with CSS animations so just copy-pasted fadein and fadeout from samples code originally :D
The documentation at https://mikke89.github.io/RmlUiDoc/pages/rcss/animations_transitions_transforms.html states that "Multiple animations can be specified on the same element by using a comma-separated list", so yep, it's just a question of feature parity with browser CSS behavior people like me might expect. Probably something for 7.0...
from rmlui.
Looked a bit more into this one again to see if there is a quick way to make it work with multiple animations with the same property on the same element. Unfortunately, it requires quite a bit more work due to some architectural assumptions, especially since different animations can have completely different animation styles (such as repetition count).
For now, I added a warning in this situation, so that users at least know something is going on.
I am closing this issue for now, and instead putting it on my long-term feature list. Certainly would be a nice-to-have feature for the future.
from rmlui.
Yup, that's fine, thank you very much for the support!
from rmlui.
Related Issues (20)
- Flex expanding width to edge HOT 2
- MSVC Freetype message in `cmake` branch HOT 1
- [Vulkan] ValidationLayers error in the `transform` demo HOT 2
- Keyframes animation transform stops working after SetClass(false) on element HOT 2
- Rml::SystemInterface::JoinPath parameter document_path passed in is empty HOT 4
- [Effects branch] box-shadow Asserts with No converter specified HOT 7
- CSS Custom Properties HOT 1
- "contextmenu" (right click) event is not implemented HOT 3
- Use controllers in the menus HOT 7
- Issues with clip and transform properties when used together. HOT 2
- C Bindings, Arrays and Structs HOT 4
- RmlUi GLFW3 (Vulkan) causes amgpu driver crash HOT 13
- SetDensityIndependentPixelRatio does not cause a change with GLFW3 GL3 HOT 5
- Rml::SystemInterface::JoinPath not used when using RmlDebugger causes different resource search paths on my debug and release builds HOT 3
- Change `Element::AddEventListener` to take weak pointers to the event listener HOT 8
- Input elements display nothing on screen HOT 4
- Vulkan Backend does not work with Lottie animations over time HOT 7
- I noticed that there are other licenses in the folder, one of which mentions the GNU protocol. HOT 2
- Tga file loading does not work correctly, but not in all circumstances (and only in Windows!). HOT 5
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 rmlui.