-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathGleamGradient.jsx
46 lines (42 loc) · 1.33 KB
/
GleamGradient.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Copyright (C) 2019-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2019-present Sven Greb <[email protected]>
*
* Project: Arctic Landscape
* Repository: https://github.com/arcticicestudio/arctic-landscape
* License: MIT
*/
import React from "react";
import nord from "../../shared/nord";
import { AURORA_BOREALIS_GLEAM_GRADIENT_ID } from "../../shared/constants";
const GleamGradient = () => (
<defs>
<linearGradient id={AURORA_BOREALIS_GLEAM_GRADIENT_ID} x1="50%" x2="50%" y1="0%" y2="100%">
<stop offset="0%" stopColor={nord.nord7}>
<animate
attributeName="stop-color"
dur="4s"
repeatCount="indefinite"
values={`${nord.nord7}; ${nord.nord8}; ${nord.nord7}`}
/>
</stop>
<stop offset="50%" stopColor={nord.nord8}>
<animate
attributeName="stop-color"
dur="4s"
repeatCount="indefinite"
values={`${nord.nord8}; ${nord.nord9}; ${nord.nord8}`}
/>
</stop>
<stop offset="100%" stopColor={nord.nord9}>
<animate
attributeName="stop-color"
dur="4s"
repeatCount="indefinite"
values={`${nord.nord9}; ${nord.nord10}; ${nord.nord9}`}
/>
</stop>
</linearGradient>
</defs>
);
export default GleamGradient;