'JavaFX button hover underline animation like in css
Can you give me tips to create this animation in JavaFX?
Or underline may move from left to right
My current .css file
.button{
-fx-background-color: rgba(0,0,0,0.1);
-fx-shape: "M 400 200 L 400 250 L 500 250 L 500 200 L 400 200";
}
.button .text {
-fx-fill: white;
}
.button:hover .text {
-fx-fill: #FFFF55;
}
.button:hover {
-fx-background-color: rgba(0,0,0,0.1);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
