leaflet: Use provided duration for child transitions

Actually use the value from the function argument.

Signed-off-by: Alexander Mikhaylenko <alexm@gnome.org>
7 jobs for wip/exalm/fix in 8 minutes and 40 seconds (queued for 2 seconds)