<script>
	function b(node, params) {
		return {
			duration: 100,
			tick: t => {
				node.b = t;
			}
		};
	}
</script>

<div transition:b>b</div>