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

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