Home / Function/ circInOut() — svelte Function Reference

circInOut() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  23104f27_87b0_03b8_b1a2_71c62aa8cc0d["circInOut()"]
  8d8f0ca3_5d92_5886_ea4e_cf91e157cffe["index.js"]
  23104f27_87b0_03b8_b1a2_71c62aa8cc0d -->|defined in| 8d8f0ca3_5d92_5886_ea4e_cf91e157cffe
  style 23104f27_87b0_03b8_b1a2_71c62aa8cc0d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/easing/index.js lines 83–86

export function circInOut(t) {
	if ((t *= 2) < 1) return -0.5 * (Math.sqrt(1 - t * t) - 1);
	return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free