I\'m looking to make a label blink in and out ever 0.1 seconds in javafx. The text appears on top of an ImageView gif that is running in the background. How would I go about
Use a timeline:
Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(0.05), evt -> label.setVisible(false)), new KeyFrame(Duration.seconds( 0.1), evt -> label.setVisible(true))); timeline.setCycleCount(Animation.INDEFINITE); timeline.play();