Fixed problems with shadow dom usage.
Fixed transitions.
Format of the declaration changed a little bit (see example).