Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workly-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ToAber
workly-frontend
Commits
de219f33
Commit
de219f33
authored
3 weeks ago
by
themagicmartin
Browse files
Options
Downloads
Patches
Plain Diff
Animation added
parent
0dfd18ea
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Workly/src/pages/Signup/components/ButtonGroup.Modules.css
+47
-5
47 additions, 5 deletions
Workly/src/pages/Signup/components/ButtonGroup.Modules.css
Workly/src/pages/Signup/components/ButtonGroup.tsx
+1
-1
1 addition, 1 deletion
Workly/src/pages/Signup/components/ButtonGroup.tsx
with
48 additions
and
6 deletions
Workly/src/pages/Signup/components/ButtonGroup.Modules.css
+
47
−
5
View file @
de219f33
...
...
@@ -11,7 +11,7 @@
width
:
12rem
;
height
:
12rem
;
border-radius
:
50%
;
/* Makes it round */
border
:
none
;
border
:
3px
solid
transparent
;
background-color
:
#ffffff
;
color
:
white
;
border
:
1px
solid
lightgray
;
...
...
@@ -29,11 +29,44 @@
}
.round-button
:active
{
border
:
3px
solid
rgb
(
0
,
0
,
0
);
/* Visible border when active */
border
:
3px
solid
rgb
(
255
,
255
,
255
);
/* Visible border when active */
}
@keyframes
fill-border
{
0
%
{
border-top
:
3px
solid
transparent
;
border-right
:
3px
solid
transparent
;
border-bottom
:
3px
solid
transparent
;
border-left
:
3px
solid
transparent
;
}
25
%
{
border-top
:
3px
solid
transparent
;
border-right
:
3px
solid
black
;
border-bottom
:
3px
solid
transparent
;
border-left
:
3px
solid
transparent
;
}
50
%
{
border-top
:
3px
solid
transparent
;
border-right
:
3px
solid
black
;
border-bottom
:
3px
solid
black
;
border-left
:
3px
solid
transparent
;
}
75
%
{
border-top
:
3px
solid
transparent
;
border-right
:
3px
solid
black
;
border-bottom
:
3px
solid
black
;
border-left
:
3px
solid
black
;
}
100
%
{
border-top
:
3px
solid
black
;
border-right
:
3px
solid
black
;
border-bottom
:
3px
solid
black
;
border-left
:
3px
solid
black
;
}
}
.round-button.active
{
border
:
3px
solid
black
!important
;
/* Ensures the border stays */
animation
:
fill-border
0.1s
cubic-bezier
(
0.42
,
0
,
1
,
1
)
forwards
;
transform
:
scale
(
1.1
);
}
...
...
@@ -53,7 +86,7 @@
box-shadow
:
0
4px
5px
-2px
rgba
(
0
,
0
,
0
,
1
);
}
.continue-button
:hover
{
.continue-button
.active
:hover
{
transform
:
scale
(
1.05
);
}
...
...
@@ -66,9 +99,18 @@
}
.continue-button.inactive
{
background-color
:
gray
;
/* Inactive button color */
color
:
#ccc
;
/* Change the text color to gray when inactive */
cursor
:
not-allowed
;
/* Make the cursor show as not-allowed */
}
.continue-button.active
{
background-color
:
black
;
color
:
white
;
}
.buttonTitle
{
text-align
:
center
;
margin
:
3rem
auto
;
font-size
:
2.5rem
;
color
:
black
;
position
:
relative
;
...
...
This diff is collapsed.
Click to expand it.
Workly/src/pages/Signup/components/ButtonGroup.tsx
+
1
−
1
View file @
de219f33
...
...
@@ -30,7 +30,7 @@ const ButtonGroup = () => {
)
}
</
button
>
</
div
>
<
button
className
=
"
continue-button
"
>
<
button
className
=
{
`
continue-button
${
activeButton
?
"
active
"
:
"
inactive
"
}
`
}
>
<
div
className
=
"buttonTitle"
>
CONTINUE
<
span
className
=
"line-md--arrow-up"
></
span
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment