Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.min.css
node_modules/
dist/
scripts/
35 changes: 35 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": "stylelint-config-standard",
"rules": {
"selector-class-pattern": null,
"custom-property-pattern": null,
"keyframes-name-pattern": null,
"no-descending-specificity": null,
"declaration-empty-line-before": null,
"color-function-notation": "legacy",
"alpha-value-notation": "number",
"color-hex-length": null,
"at-rule-empty-line-before": null,
"rule-empty-line-before": null,
"declaration-block-single-line-max-declarations": null,
"property-no-vendor-prefix": null,
"value-keyword-case": null,
"import-notation": "string",
"shorthand-property-no-redundant-values": null,
"declaration-block-no-redundant-longhand-properties": null,
"font-family-name-quotes": null,
"comment-empty-line-before": null,
"media-feature-range-notation": "prefix",
"length-zero-no-unit": null,
"custom-property-empty-line-before": null,
"no-invalid-position-at-import-rule": null,
"font-family-no-missing-generic-family-keyword": null,
"keyframe-selector-notation": null,
"number-max-precision": null,
"comment-whitespace-inside": null,
"property-no-unknown": null,
"no-duplicate-selectors": null,
"import-notation": null,
"declaration-block-no-duplicate-properties": null
}
}
12 changes: 0 additions & 12 deletions core/animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,6 @@
}
}
/* ── Animation Utility Classes ─────────────────────────────── */
.ease-zoom-in {
animation: ease-zoom-in 0.6s ease-out forwards;
}

.ease-zoom-out {
animation: ease-zoom-out 0.6s ease-out forwards;
Expand Down Expand Up @@ -513,15 +510,6 @@
animation: ease-kf-squish-button var(--ease-speed-medium) var(--ease-ease) both;

}
.ease-shimmer-sweep {
background: linear-gradient(
120deg,
transparent 30%,
rgba(255, 255, 255, 0.15) 50%,
transparent 70%
);
background-size: 200% auto;
animation: ease-kf-shimmer-sweep var(--ease-speed-slow) var(--ease-ease) infinite;
}
.ease-gradient-rotation {
background: linear-gradient(270deg,
Expand Down
1 change: 1 addition & 0 deletions submissions/examples/parallax-tilt-effect/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ img {
.em-demo-hint {
display: none;
}
}
/* Basic page setup for the demo */
body {
margin: 0;
Expand Down
42 changes: 42 additions & 0 deletions tests/smoke.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { describe, it, expect, beforeAll } from 'vitest';
import { JSDOM } from 'jsdom';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';

describe('EaseMotion-css Smoke Tests', () => {
let dom;
let document;
let css;

beforeAll(() => {
const coreDir = resolve(__dirname, '../core');
const variables = readFileSync(resolve(coreDir, 'variables.css'), 'utf8');
const base = readFileSync(resolve(coreDir, 'base.css'), 'utf8');
const animations = readFileSync(resolve(coreDir, 'animations.css'), 'utf8');
const utilities = readFileSync(resolve(coreDir, 'utilities.css'), 'utf8');

css = variables + base + animations + utilities;
dom = new JSDOM('<!DOCTYPE html><html><head></head><body></body></html>');
document = dom.window.document;

const style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
});

it('should have basic core classes defined', () => {
// Check for some common classes in the combined CSS content
expect(css).toContain('.ease-fade-in');
expect(css).toContain('.ease-slide-up');
expect(css).toContain(':root');
});

it('should apply base variables', () => {
const styleTag = document.querySelector('style');
expect(styleTag.textContent).toContain('--ease-speed-medium');
});

it('should handle prefers-reduced-motion', () => {
expect(css).toContain('@media (prefers-reduced-motion: reduce)');
});
});
Loading