iamgio / animated Goto Github PK
View Code? Open in Web Editor NEW:ocean: Modern animation library for JavaFX.
License: MIT License
:ocean: Modern animation library for JavaFX.
License: MIT License
Hi! I have a JavaFX app window which contains a button that toggles the theme from light to dark, and i added AnimatedThemeSwitcher into the function bound to the said button. I was wondering if I could make it have another duration, like half a second or something? Because if i press that button twice or thrice after the initial change happens, the application freezes for a bit and then it switches the theme.
I use the version 0.40
I just add 2 node into the AnimatedVBox
val contentVbox = AnimatedVBox(AnimationPair(null,BounceOutRight()))
contentVbox.add(Text("hello"))
contentVbox.add(Text("hell2o"))
the exception is this
java.lang.NullPointerException
at eu.iamgio.animated.AnimatedContainer$Handler.relocate(AnimatedContainer.java:180)
at eu.iamgio.animated.AnimatedContainer$Handler.lambda$null$0(AnimatedContainer.java:133)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run$$$capture(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
the image is this
imageUrl: https://img2022.cnblogs.com/blog/1210268/202202/1210268-20220211160512243-1641573797.png
by the way,the version of kotlin what you use is to high for my project ๐
I just use the kotlin 1.3.72 because of use the tornadofx framework
Hi again! I've encountered a small problem with using AnimatedThemeSwitcher to switch themes when using a GridPane as root.
So, I am loading an FXML file that has a GridPane containing a few nodes, and it seems the screenshot with the old theme applied gets set only on the first row and it doesn't span across all of the rows, so the animation plays on the top half of the app screen, while the bottom half is instantly displayed with the new theme applied.
I want to perform some actions at the end of the animation, such as closing the page, which is to pan the page out of the visible range, and then clear it. Now that there is no animation, you need to monitor the coordinates, which becomes very troublesome.I hope there is a function that can be called when the animation is finished playing.It is best to set callback functions for multiple animations separately.Or rather, this is a lifecycle. Thank you !.
This project looks very cool. Can you add it to the jfxcentral data repository please? https://github.com/dlsc-software-consulting-gmbh/jfxcentral-data
Is it possible to change the library name? animated
is a very generic name that is hard to get search results for, even when you search for animated javafx
.
It is quite standard for JavaFX libraries and projects to be modular, can you please add a proper module-info with an appropriate name.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.