Home / Function/ sineIn() — svelte Function Reference

sineIn() — svelte Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/svelte/src/easing/index.js lines 274–278

export function sineIn(t) {
	const v = Math.cos(t * Math.PI * 0.5);
	if (Math.abs(v) < 1e-14) return 1;
	else return 1 - v;
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free