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

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