Reset style before generating transitions

This commit is contained in:
Emmanuel BENOîT 2020-10-23 13:20:07 +02:00
parent d97292719f
commit 4b84f067e7

View file

@ -363,7 +363,7 @@ sub gen_transition
my @colors = ( @_ , @{ themed 'transition' } ); my @colors = ( @_ , @{ themed 'transition' } );
my $state = 0; my $state = 0;
my $pc; my $pc;
my $out = [ ]; my $out = [ {style=>'none'} ];
foreach my $char ( split // , $transition ) { foreach my $char ( split // , $transition ) {
if ( $state == 1 ) { if ( $state == 1 ) {
if ( $char eq 'f' || $char eq 'b' ) { if ( $char eq 'f' || $char eq 'b' ) {