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

<div animate:foo></div>