<script>
	function foo() {}
	function bar() {}
</script>

<div transition:foo in:bar>...</div>