Skip to content

Commit

Permalink
Merge pull request #17 from jagnani73/yj/feat
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 authored Jan 25, 2022
2 parents 5cdd9f1 + 6ca608c commit 4058460
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-easy-marquee",
"version": "1.1.5",
"version": "1.1.6",
"homepage": "https://jagnani73.github.io/react-easy-marquee",
"description": "A marquee component for React using CSS.",
"author": {
Expand All @@ -21,7 +21,7 @@
],
"main": "dist/index.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"types": "dist/types.d.ts",
"engines": {
"node": ">=12",
"npm": ">=6"
Expand Down
6 changes: 5 additions & 1 deletion src/animation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { AnimationProps } from "./types";
export interface AnimationProps {
axis?: "X" | "Y";
reverse?: boolean;
offset: -1 | 0 | 1;
}

const Animation = ({ axis, reverse, offset }: AnimationProps) => {
return (
Expand Down
6 changes: 1 addition & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
export interface AnimationProps {
axis?: "X" | "Y";
reverse?: boolean;
offset: -1 | 0 | 1;
}
import { AnimationProps } from "./animation";

export interface MarqueeProps extends AnimationProps {
align?: "start" | "end";
Expand Down

0 comments on commit 4058460

Please sign in to comment.