src/js/animations/ViewTransition-surroundingNodes.js
// hides bottom tabs by pushing it away off the top of the screen
hides bottom tabs by pushing it away off the top of the screen
hides bottom tabs by pushing it away off the top of the screen
pushAwayElementsBelow() {
		this.belowMain = this.belowNodes.pop()
		if (!this.belowMain) return
		let bottom = this.baseViewBbox.bottom - this.originBbox.bottom
		let distFromToolbar = bottom - this.belowMain.offsetHeight
		let radians = mapRange(distFromToolbar * 2, 0, this.newViewBbox.height, 0, Math.PI / 2)
		let delay = 0.1 + (Math.sin(radians) * 0.45)
		let transform = ['translate3d(0, 0%, 0)', 'translate3d(0, 100%, 0)']
		this.schedule(this.belowMain, {transform}, delay, 1)
	}
pushAwayElementsBelow ( ) { this . belowMain = this . belowNodes . pop ( ) if ( ! this . belowMain ) return let bottom = this . baseViewBbox . bottom - this . originBbox . bottom let distFromToolbar = bottom - this . belowMain . offsetHeight let radians = mapRange ( distFromToolbar * 2 , 0 , this . newViewBbox . height , 0 , Math . PI / 2 ) let delay = 0.1 + ( Math . sin ( radians ) * 0.45 ) let transform = [ 'translate3d(0, 0%, 0)' , 'translate3d(0, 100%, 0)' ] this . schedule ( this . belowMain , { transform } , delay , 1 ) }
hides bottom tabs by pushing it away off the top of the screen
hides bottom tabs by pushing it away off the top of the screen
// TODO: crude. proof of concept // Distance between bottom edge of toolbar and origin's bottom edge.