@@ -16,9 +16,9 @@ const Wrapper = styled("a", {
16
16
position : "absolute" ,
17
17
width : "100%" ,
18
18
transform : "scaleX(0)" ,
19
- height : "1px" ,
19
+ height : 1 ,
20
20
top : "110%" ,
21
- left : "0" ,
21
+ left : 0 ,
22
22
backgroundColor : "hsl(193, 95%, 71%)" ,
23
23
transformOrigin : "bottom right" ,
24
24
transition : "transform .4s cubic-bezier(.86,0,.07,1)" ,
@@ -31,19 +31,18 @@ const Wrapper = styled("a", {
31
31
} ) ;
32
32
33
33
export const stitchesStyling = `
34
- const Wrapper = styled("a", {
34
+ const ExampleWrapper = styled("a", {
35
35
display: "inline-block",
36
36
position: "relative",
37
- cursor: "pointer",
38
37
39
38
"&:after": {
40
39
content: "",
41
40
position: "absolute",
42
41
width: "100%",
43
42
transform: "scaleX(0)",
44
- height: "1px" ,
43
+ height: 1 ,
45
44
top: "110%",
46
- left: "0" ,
45
+ left: 0 ,
47
46
backgroundColor: "hsl(193, 95%, 71%)",
48
47
transformOrigin: "bottom right",
49
48
transition: "transform .4s cubic-bezier(.86,0,.07,1)",
@@ -54,3 +53,55 @@ const Wrapper = styled("a", {
54
53
transformOrigin: "bottom left",
55
54
},
56
55
});` ;
56
+
57
+ export const cssStyling = `
58
+ .exampleClass {
59
+ display: inline-block;
60
+ position: relative;
61
+ color: hsl(222, 25%, 14%);
62
+ }
63
+
64
+ .exampleClass::after {
65
+ content: '';
66
+ position: absolute;
67
+ width: 100%;
68
+ transform: scaleX(0);
69
+ height: 2px;
70
+ bottom: 0;
71
+ left: 0;
72
+ background-color: hsl(243, 80%, 62%);
73
+ transform-origin: bottom right;
74
+ transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
75
+ }
76
+
77
+ .exampleClass:hover::after {
78
+ transform: scaleX(1);
79
+ transform-origin: bottom left;
80
+ }
81
+ ` ;
82
+
83
+ export const scssStyling = `
84
+ .exampleClass {
85
+ display: inline-block;
86
+ position: relative;
87
+ color: hsl(222, 25%, 14%);
88
+
89
+ &::after {
90
+ content: '';
91
+ position: absolute;
92
+ width: 100%;
93
+ transform: scaleX(0);
94
+ height: 2px;
95
+ bottom: 0;
96
+ left: 0;
97
+ background-color: hsl(243, 80%, 62%);
98
+ transform-origin: bottom right;
99
+ transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
100
+ }
101
+
102
+ &:hover::after {
103
+ transform: scaleX(1);
104
+ transform-origin: bottom left;
105
+ }
106
+ }
107
+ ` ;
0 commit comments