Home / Function/ cubicInOut() — svelte Function Reference

cubicInOut() — svelte Function Reference

Architecture documentation for the cubicInOut() function in index.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  288fc608_bd3e_6ae1_1eda_73ae891cc3b5["cubicInOut()"]
  365a915b_34a9_b4e7_3ec4_f2b8dcba5c1a["index.js"]
  288fc608_bd3e_6ae1_1eda_73ae891cc3b5 -->|defined in| 365a915b_34a9_b4e7_3ec4_f2b8dcba5c1a
  style 288fc608_bd3e_6ae1_1eda_73ae891cc3b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/easing/index.js lines 108–110

export function cubicInOut(t) {
	return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;
}

Domain

Subdomains

Frequently Asked Questions

What does cubicInOut() do?
cubicInOut() is a function in the svelte codebase, defined in packages/svelte/src/easing/index.js.
Where is cubicInOut() defined?
cubicInOut() is defined in packages/svelte/src/easing/index.js at line 108.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free