Coder Social home page Coder Social logo

iamgio / animated Goto Github PK

View Code? Open in Web Editor NEW
155.0 6.0 11.0 319 KB

:ocean: Modern animation library for JavaFX.

License: MIT License

Java 97.90% CSS 0.96% Kotlin 1.15%
javafx animation javafx-library javafx-animation animations implicit-animations transitions animated-javafx animation-library javafx-animation-library

animated's People

Contributors

iamgio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

animated's Issues

AnimatedThemeSwitcher change duration

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.

add two node into AnimatedVBox at first and it cause a NullPointerException

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

Theme switching animation buggy when using GridPane as root

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.

Recording.2024-02-14.205835.mp4

add a playback callback

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

Unsearchable name

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.

Add module-info

It is quite standard for JavaFX libraries and projects to be modular, can you please add a proper module-info with an appropriate name.

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.