Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
44 changes: 35 additions & 9 deletions canvas-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,49 @@
}

body {
background-color: #f1bbd5; /* main background color */
background-color: #89c9b8; /* main background color */

}

/* for outer circle div */
.outer-circle {
background-color: #3b0944;
background-color: #2e38bd;
border-radius: 50%;
width: 500px;
height: 500px;
position: relative;
box-shadow: 0 0 0 1px #fcfcfc;
position: absolute;
margin: 0 auto;
background: radial-gradient(circle at 100px 100px, #2e38bd, #000)

}

/* for shadow and 3d effect */

.stage {
width: 500px;
height: 500px;
display: inline-block;
margin: 100px;
perspective: 1200px;
perspective-origin: 50% 50%;
position: relative;
}

.outer-circle .shadow {

position: absolute;
width: 100%;
height: 100%;
background: radical-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0) 50%);
transform: rotateX(90deg) translateZ(-150px);
z-index: -1;
}



/* for inner circle div */
.inner-circle {
background-color: #5f1854;
background-color: #2e38bd;
border-radius: 50%;
width: 350px;
height: 350px;
Expand All @@ -33,10 +58,11 @@ body {
top: 50%;
left: 50%;
box-shadow: 0 0 0 1px #fcfcfc;
}
/* for center div */
}

/* for center div */
.center {
background-color: #a12559;
background-color: #2e38bd;
border-radius: 50%;
/* code below this line for centering inner-circle div */
width: 175px;
Expand All @@ -46,4 +72,4 @@ body {
top: 50%;
left: 50%;
box-shadow: 0 0 0 1px #fcfcfc;
}
}
12 changes: 6 additions & 6 deletions canvas.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

<body>

<div class="outer-circle">
<div class="inner-circle">
<div class="center">
<section class="stage">

</div>

<div class="outer-circle"> <span class="shadow">
<div class="inner-circle">
<div class="center"></div>
</div>

</span>
</div>

</section>

</body>
</html>
Expand Down