Skip to content

Commit 1d6adef

Browse files
author
roncyrthomas
committed
Roncy R Thomas- Button
1 parent 620ea60 commit 1d6adef

File tree

4 files changed

+89
-2
lines changed

4 files changed

+89
-2
lines changed

css/buttons.css

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.button {
66
border-radius: 4px;
7-
background-color: #ff7281;
7+
88
border: none;
99
color: #ffffff;
1010
text-align: center;
@@ -40,3 +40,38 @@
4040
opacity: 1;
4141
right: 0;
4242
}
43+
.btn {
44+
width: 180px;
45+
height: 60px;
46+
cursor: pointer;
47+
background: transparent;
48+
border: 1px solid #91C9FF;
49+
outline: none;
50+
transition: 1s ease-in-out;
51+
}
52+
53+
svg {
54+
position: absolute;
55+
left: 0;
56+
top: 0;
57+
fill: none;
58+
stroke: #fff;
59+
stroke-dasharray: 150 480;
60+
stroke-dashoffset: 150;
61+
transition: 1s ease-in-out;
62+
}
63+
64+
.btn:hover {
65+
transition: 1s ease-in-out;
66+
background: #4F95DA;
67+
}
68+
69+
.btn:hover svg {
70+
stroke-dashoffset: -480;
71+
}
72+
73+
.btn span {
74+
color: black;
75+
font-size: 18px;
76+
font-weight: 300;
77+
}

css/cardcolor.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
.demo {
2222
background-color: #35cce0;
2323
}
24+

css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ footer {
7878
position: relative;
7979
background-color: #ff5a79;
8080
color: #fff;
81-
box-shadow: 0 4px #f3002e;
81+
/* box-shadow: 0 4px #f3002e; */
8282
text-decoration: none;
8383
}
8484

pages/buttons.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,57 @@ <h2>
6969
</div>
7070
</div>
7171
</div>
72+
<!-- Roncy R Thomas-->
73+
<div class="row">
74+
<div class="col-lg-6">
75+
<div class="component">
76+
<div class="card magictime">
77+
78+
79+
80+
<div class="card-title philip">
81+
<strong>Button</strong>
82+
</div>
83+
<div class="card-content">
84+
<button class="btn">
85+
<svg width="180px" height="60px" viewBox="0 0 180 60" class="border">
86+
<polyline points="179,1 179,59 1,59 1,1 179,1" class="bg-line" />
87+
<polyline points="179,1 179,59 1,59 1,1 179,1" class="hl-line" />
88+
</svg>
89+
<span>HOVER ME</span>
90+
</button>
91+
92+
93+
94+
</div>
95+
</div>
96+
</div>
97+
</div>
98+
<div class="col-lg-6">
99+
<div class="component">
100+
<div class="card magictime">
101+
102+
<!-- Here Philip is the css selector for changing card color-->
103+
104+
<div class="card-title philip">
105+
<strong>Creator</strong>
106+
</div>
107+
<div class="card-content">
108+
<div class="creater-name">
109+
<h2>
110+
<b>Name:</b
111+
><span>
112+
113+
114+
<a href="https://www.github.com/roncyrthomas">Roncy R Thomas</a>
115+
</span>
116+
</h2>
117+
</div>
118+
</div>
119+
</div>
120+
</div>
121+
</div>
122+
</div>
72123

73124
<!-- Joyal Joseph -->
74125
<div class="row">

0 commit comments

Comments
 (0)