<script> function foo() {} function bar() {} </script> <div transition:foo transition:bar>...</div>