Skip to content

Commit 7866460

Browse files
authored
Merge pull request #1325 from zhensherlock/dev
v1.6.3
2 parents f4dc176 + 1d7c62c commit 7866460

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [1.6.3](https://github.com/zhensherlock/watermark-js-plus/compare/v1.6.2...v1.6.3) (2025-07-25)
2+
3+
4+
### 🐛 Bug Fixes | Bug 修复
5+
6+
* change animation timing function to linear for consistency ([27e1ecb](https://github.com/zhensherlock/watermark-js-plus/commit/27e1ecbe13d8de135a05ae3b1646b42bfd456bb2))
7+
8+
9+
110
## [1.6.2](https://github.com/zhensherlock/watermark-js-plus/compare/v1.6.1...v1.6.2) (2025-05-13)
211

312

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "watermark-js-plus",
3-
"version": "1.6.2",
3+
"version": "1.6.3",
44
"description": "watermark for the browser",
55
"scripts": {
66
"clean:dist": "rimraf dist",

src/utils/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ export const generateAnimationStyle = (movable: boolean, backgroundRepeat: strin
167167
case 'repeat':
168168
return 'animation: 200s linear 0s infinite alternate watermark !important;'
169169
case 'repeat-x':
170-
return `animation: ${horizontalDuration}s ease-in 0s infinite alternate watermark-vertical !important;'`
170+
return `animation: ${horizontalDuration}s linear 0s infinite alternate watermark-vertical !important;'`
171171
case 'repeat-y':
172-
return `animation: ${verticalDuration}s ease-out 0s infinite alternate watermark-horizontal !important;'`
172+
return `animation: ${verticalDuration}s linear 0s infinite alternate watermark-horizontal !important;'`
173173
case 'no-repeat':
174-
return `animation: ${horizontalDuration}s ease-in 0s infinite alternate watermark-horizontal, ${verticalDuration}s ease-out 0s infinite alternate watermark-vertical !important;`
174+
return `animation: ${horizontalDuration}s linear 0s infinite alternate watermark-horizontal, ${verticalDuration}s linear 0s infinite alternate watermark-vertical !important;`
175175
default:
176176
return ''
177177
}

0 commit comments

Comments
 (0)