Eduardo Ruesta
06/27/2024, 2:08 PMval MainPostPreviewStyle = CssStyle {
base {
Modifier
.scale(100.percent)
.transition(Transition.of(property = TransitionProperty.All, duration = <http://300.ms|300.ms>))
}
i have issue with the propertyCLOVIS
06/27/2024, 2:50 PMEduardo Ruesta
06/27/2024, 3:00 PMproperty we have to pass a String or TransitionProperty. And thats what im doing but still showing me red error in the transition lineCLOVIS
06/27/2024, 3:02 PMEduardo Ruesta
06/27/2024, 3:28 PMS.
06/27/2024, 4:23 PM.transition(Transition.all(<http://300.ms|300.ms>, AnimationTimingFunction.Ease)) this should workEduardo Ruesta
06/27/2024, 4:53 PMDavid Herman
06/27/2024, 9:01 PMDavid Herman
06/27/2024, 9:03 PMTransitionProperty list of constants is only meant for the Modifier.transitionProperty(...) modifier. It does seem like All should be supported as an argument to Transition.of so I'll take a look at exposing it. In the meanwhile, Transition.all is the way to go.Eduardo Ruesta
06/27/2024, 9:47 PMDavid Herman
06/27/2024, 10:59 PMtransition: all 200ms, opacity 400ms is actually valid, so we were able to fix an API issue while we were in there. (Previously, Kobweb prevented you from specifying any other property name if you used Transition.all)
Anyway, starting in 0.18.3, you'll be able to use Transition.of(TransitionProperty.All), so thanks for bringing up your issue!