@sudarshanaui/adminchoice---parallax-image-link 1.0.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- .hover-img-link {
1
+ .sd-hover-img-link {
2
2
  position: relative;
3
3
  display: inline-block;
4
4
  text-decoration: none;
@@ -6,7 +6,7 @@
6
6
  padding: 10px;
7
7
  }
8
8
 
9
- .link-text {
9
+ .sd-link-text {
10
10
  font-family: times new roman, serif;
11
11
  font-style: italic;
12
12
  font-size: 48px;
@@ -15,7 +15,7 @@
15
15
  transition: all 0.3s;
16
16
  }
17
17
 
18
- .img-float {
18
+ .sd-img-float {
19
19
  position: absolute;
20
20
  top: 50%;
21
21
  left: 100%;
@@ -30,17 +30,17 @@
30
30
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
31
31
  }
32
32
 
33
- .hover-img-link:hover .img-float {
33
+ .sd-hover-img-link:hover .sd-img-float {
34
34
  opacity: 1;
35
35
  transform: translate(40px, -50%) scale(1) rotate(0deg);
36
36
  }
37
37
 
38
- .hover-img-link:hover .link-text {
38
+ .sd-hover-img-link:hover .sd-link-text {
39
39
  opacity: 0.5;
40
40
  letter-spacing: 2px;
41
41
  }
42
42
 
43
- .hover-img-link:active .link-text {
43
+ .sd-hover-img-link:active .sd-link-text {
44
44
  opacity: 0.2;
45
45
  }
46
46
 
@@ -5,9 +5,9 @@ export const AdminChoiceParallaxImageLink = (props) => {
5
5
  return (
6
6
  <>
7
7
 
8
- <a href="#" className="hover-img-link" data-label="VIEW CASE">
9
- <span className="link-text">ARCHITECTURE</span>
10
- <div className="img-float" style="background-image: url('https://picsum.photos/300/200?grayscale')"></div>
8
+ <a href="#" className="sd-hover-img-link" data-label="VIEW CASE">
9
+ <span className="sd-link-text">ARCHITECTURE</span>
10
+ <div className="sd-img-float" style="background-image: url('https://picsum.photos/300/200?grayscale')"></div>
11
11
  </a>
12
12
 
13
13
  </>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudarshanaui/adminchoice---parallax-image-link",
3
- "version": "1.0.2",
3
+ "version": "2.0.0",
4
4
  "main": "index.js",
5
5
  "peerDependencies": {
6
6
  "react": ">=16"