diff options
Diffstat (limited to 'src/_easing.scss')
| -rw-r--r-- | src/_easing.scss | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/_easing.scss b/src/_easing.scss index 8b06632..8bcfd39 100644 --- a/src/_easing.scss +++ b/src/_easing.scss | |||
| @@ -24,7 +24,7 @@ $cubic-bezier-sample-pool-size: 10 !default; | |||
| 24 | /// | 24 | /// |
| 25 | /// Minimum slope required to use the Newton-Raphson method for cubic bezier calculations. | 25 | /// Minimum slope required to use the Newton-Raphson method for cubic bezier calculations. |
| 26 | /// | 26 | /// |
| 27 | $cubic-bezier-newton-min-slope: 0.001 !default; | 27 | $cubic-bezier-newton-min-slope: .001 !default; |
| 28 | 28 | ||
| 29 | /// | 29 | /// |
| 30 | /// Number of iterations of the Newton-Raphson method. | 30 | /// Number of iterations of the Newton-Raphson method. |
| @@ -34,7 +34,7 @@ $cubic-bezier-newton-iters: 4 !default; | |||
| 34 | /// | 34 | /// |
| 35 | /// Precision of the subdivision method for cubic bezier calculations. | 35 | /// Precision of the subdivision method for cubic bezier calculations. |
| 36 | /// | 36 | /// |
| 37 | $cubic-bezier-subdiv-precision: 0.0000001 !default; | 37 | $cubic-bezier-subdiv-precision: .0000001 !default; |
| 38 | 38 | ||
| 39 | /// | 39 | /// |
| 40 | /// Maximum iterations of the subdivision method for cubic bezier calculations. | 40 | /// Maximum iterations of the subdivision method for cubic bezier calculations. |
| @@ -217,7 +217,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 217 | /// @return {number} | 217 | /// @return {number} |
| 218 | /// | 218 | /// |
| 219 | @function ease($x) { | 219 | @function ease($x) { |
| 220 | @return cubic-bezier(0.25, 0.1, 0.25, 1, $x); | 220 | @return cubic-bezier(.25, .1, .25, 1, $x); |
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | /// | 223 | /// |
| @@ -228,7 +228,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 228 | /// @return {number} | 228 | /// @return {number} |
| 229 | /// | 229 | /// |
| 230 | @function ease-in($x) { | 230 | @function ease-in($x) { |
| 231 | @return cubic-bezier(0.42, 0, 1, 1, $x); | 231 | @return cubic-bezier(.42, 0, 1, 1, $x); |
| 232 | } | 232 | } |
| 233 | 233 | ||
| 234 | /// | 234 | /// |
| @@ -239,7 +239,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 239 | /// @return {number} | 239 | /// @return {number} |
| 240 | /// | 240 | /// |
| 241 | @function ease-out($x) { | 241 | @function ease-out($x) { |
| 242 | @return cubic-bezier(0, 0, 0.58, 1, $x); | 242 | @return cubic-bezier(0, 0, .58, 1, $x); |
| 243 | } | 243 | } |
| 244 | 244 | ||
| 245 | /// | 245 | /// |
| @@ -250,7 +250,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 250 | /// @return {number} | 250 | /// @return {number} |
| 251 | /// | 251 | /// |
| 252 | @function ease-in-out($x) { | 252 | @function ease-in-out($x) { |
| 253 | @return cubic-bezier(0.42, 0, 0.58, 1, $x); | 253 | @return cubic-bezier(.42, 0, .58, 1, $x); |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | /// | 256 | /// |
| @@ -261,7 +261,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 261 | /// @return {number} | 261 | /// @return {number} |
| 262 | /// | 262 | /// |
| 263 | @function ease-in-sine($x) { | 263 | @function ease-in-sine($x) { |
| 264 | @return cubic-bezier(0.47, 0, 0.745, 0.715, $x); | 264 | @return cubic-bezier(.47, 0, .745, .715, $x); |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | /// | 267 | /// |
| @@ -272,7 +272,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 272 | /// @return {number} | 272 | /// @return {number} |
| 273 | /// | 273 | /// |
| 274 | @function ease-out-sine($x) { | 274 | @function ease-out-sine($x) { |
| 275 | @return cubic-bezier(0.39, 0.575, 0.565, 1, $x); | 275 | @return cubic-bezier(.39, .575, .565, 1, $x); |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | /// | 278 | /// |
| @@ -283,7 +283,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 283 | /// @return {number} | 283 | /// @return {number} |
| 284 | /// | 284 | /// |
| 285 | @function ease-in-out-sine($x) { | 285 | @function ease-in-out-sine($x) { |
| 286 | @return cubic-bezier(0.445, 0.05, 0.55, 0.95, $x); | 286 | @return cubic-bezier(.445, .05, .55, .95, $x); |
| 287 | } | 287 | } |
| 288 | 288 | ||
| 289 | /// | 289 | /// |
| @@ -294,7 +294,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 294 | /// @return {number} | 294 | /// @return {number} |
| 295 | /// | 295 | /// |
| 296 | @function ease-in-quad($x) { | 296 | @function ease-in-quad($x) { |
| 297 | @return cubic-bezier(0.55, 0.085, 0.68, 0.53, $x); | 297 | @return cubic-bezier(.55, .085, .68, .53, $x); |
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | /// | 300 | /// |
| @@ -305,7 +305,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 305 | /// @return {number} | 305 | /// @return {number} |
| 306 | /// | 306 | /// |
| 307 | @function ease-out-quad($x) { | 307 | @function ease-out-quad($x) { |
| 308 | @return cubic-bezier(0.25, 0.46, 0.45, 0.94, $x); | 308 | @return cubic-bezier(.25, .46, .45, .94, $x); |
| 309 | } | 309 | } |
| 310 | 310 | ||
| 311 | /// | 311 | /// |
| @@ -316,7 +316,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 316 | /// @return {number} | 316 | /// @return {number} |
| 317 | /// | 317 | /// |
| 318 | @function ease-in-out-quad($x) { | 318 | @function ease-in-out-quad($x) { |
| 319 | @return cubic-bezier(0.455, 0.03, 0.515, 0.955, $x); | 319 | @return cubic-bezier(.455, .03, .515, .955, $x); |
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | /// | 322 | /// |
| @@ -327,7 +327,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 327 | /// @return {number} | 327 | /// @return {number} |
| 328 | /// | 328 | /// |
| 329 | @function ease-in-cubic($x) { | 329 | @function ease-in-cubic($x) { |
| 330 | @return cubic-bezier(0.55, 0.055, 0.675, 0.19, $x); | 330 | @return cubic-bezier(.55, .055, .675, .19, $x); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | /// | 333 | /// |
| @@ -338,7 +338,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 338 | /// @return {number} | 338 | /// @return {number} |
| 339 | /// | 339 | /// |
| 340 | @function ease-out-cubic($x) { | 340 | @function ease-out-cubic($x) { |
| 341 | @return cubic-bezier(0.215, 0.61, 0.355, 1, $x); | 341 | @return cubic-bezier(.215, .61, .355, 1, $x); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | /// | 344 | /// |
| @@ -349,7 +349,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 349 | /// @return {number} | 349 | /// @return {number} |
| 350 | /// | 350 | /// |
| 351 | @function ease-in-out-cubic($x) { | 351 | @function ease-in-out-cubic($x) { |
| 352 | @return cubic-bezier(0.645, 0.045, 0.355, 1, $x); | 352 | @return cubic-bezier(.645, .045, .355, 1, $x); |
| 353 | } | 353 | } |
| 354 | 354 | ||
| 355 | /// | 355 | /// |
| @@ -360,7 +360,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 360 | /// @return {number} | 360 | /// @return {number} |
| 361 | /// | 361 | /// |
| 362 | @function ease-in-quart($x) { | 362 | @function ease-in-quart($x) { |
| 363 | @return cubic-bezier(0.895, 0.03, 0.685, 0.22, $x); | 363 | @return cubic-bezier(.895, .03, .685, .22, $x); |
| 364 | } | 364 | } |
| 365 | 365 | ||
| 366 | /// | 366 | /// |
| @@ -371,7 +371,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 371 | /// @return {number} | 371 | /// @return {number} |
| 372 | /// | 372 | /// |
| 373 | @function ease-out-quart($x) { | 373 | @function ease-out-quart($x) { |
| 374 | @return cubic-bezier(0.165, 0.84, 0.44, 1, $x); | 374 | @return cubic-bezier(.165, .84, .44, 1, $x); |
| 375 | } | 375 | } |
| 376 | 376 | ||
| 377 | /// | 377 | /// |
| @@ -382,7 +382,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 382 | /// @return {number} | 382 | /// @return {number} |
| 383 | /// | 383 | /// |
| 384 | @function ease-in-out-quart($x) { | 384 | @function ease-in-out-quart($x) { |
| 385 | @return cubic-bezier(0.77, 0, 0.175, 1, $x); | 385 | @return cubic-bezier(.77, 0, .175, 1, $x); |
| 386 | } | 386 | } |
| 387 | 387 | ||
| 388 | /// | 388 | /// |
| @@ -393,7 +393,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 393 | /// @return {number} | 393 | /// @return {number} |
| 394 | /// | 394 | /// |
| 395 | @function ease-in-quint($x) { | 395 | @function ease-in-quint($x) { |
| 396 | @return cubic-bezier(0.755, 0.05, 0.855, 0.06, $x); | 396 | @return cubic-bezier(.755, .05, .855, .06, $x); |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | /// | 399 | /// |
| @@ -404,7 +404,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 404 | /// @return {number} | 404 | /// @return {number} |
| 405 | /// | 405 | /// |
| 406 | @function ease-out-quint($x) { | 406 | @function ease-out-quint($x) { |
| 407 | @return cubic-bezier(0.23, 1, 0.32, 1, $x); | 407 | @return cubic-bezier(.23, 1, .32, 1, $x); |
| 408 | } | 408 | } |
| 409 | 409 | ||
| 410 | /// | 410 | /// |
| @@ -415,7 +415,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 415 | /// @return {number} | 415 | /// @return {number} |
| 416 | /// | 416 | /// |
| 417 | @function ease-in-out-quint($x) { | 417 | @function ease-in-out-quint($x) { |
| 418 | @return cubic-bezier(0.86, 0, 0.07, 1, $x); | 418 | @return cubic-bezier(.86, 0, .07, 1, $x); |
| 419 | } | 419 | } |
| 420 | 420 | ||
| 421 | /// | 421 | /// |
| @@ -426,7 +426,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 426 | /// @return {number} | 426 | /// @return {number} |
| 427 | /// | 427 | /// |
| 428 | @function ease-in-expo($x) { | 428 | @function ease-in-expo($x) { |
| 429 | @return cubic-bezier(0.95, 0.05, 0.795, 0.035, $x); | 429 | @return cubic-bezier(.95, .05, .795, .035, $x); |
| 430 | } | 430 | } |
| 431 | 431 | ||
| 432 | /// | 432 | /// |
| @@ -437,7 +437,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 437 | /// @return {number} | 437 | /// @return {number} |
| 438 | /// | 438 | /// |
| 439 | @function ease-out-expo($x) { | 439 | @function ease-out-expo($x) { |
| 440 | @return cubic-bezier(0.19, 1, 0.22, 1, $x); | 440 | @return cubic-bezier(.19, 1, .22, 1, $x); |
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | /// | 443 | /// |
| @@ -459,7 +459,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 459 | /// @return {number} | 459 | /// @return {number} |
| 460 | /// | 460 | /// |
| 461 | @function ease-in-circ($x) { | 461 | @function ease-in-circ($x) { |
| 462 | @return cubic-bezier(0.6, 0.04, 0.98, 0.335, $x); | 462 | @return cubic-bezier(.6, .04, .98, .335, $x); |
| 463 | } | 463 | } |
| 464 | 464 | ||
| 465 | /// | 465 | /// |
| @@ -470,7 +470,7 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 470 | /// @return {number} | 470 | /// @return {number} |
| 471 | /// | 471 | /// |
| 472 | @function ease-out-circ($x) { | 472 | @function ease-out-circ($x) { |
| 473 | @return cubic-bezier(0.075, 0.82, 0.165, 1, $x); | 473 | @return cubic-bezier(.075, .82, .165, 1, $x); |
| 474 | } | 474 | } |
| 475 | 475 | ||
| 476 | /// | 476 | /// |
| @@ -481,5 +481,5 @@ $cubic-bezier-subdiv-max-iters: 10 !default; | |||
| 481 | /// @return {number} | 481 | /// @return {number} |
| 482 | /// | 482 | /// |
| 483 | @function ease-in-out-circ($x) { | 483 | @function ease-in-out-circ($x) { |
| 484 | @return cubic-bezier(0.785, 0.135, 0.15, 0.86, $x); | 484 | @return cubic-bezier(.785, .135, .15, .86, $x); |
| 485 | } | 485 | } |
