Skip to content

Commit

Permalink
Enhancement in Widget Menu.
Browse files Browse the repository at this point in the history
Added Glass Overlay Effect in Widget Menu.
Added Photos Section in Widget Menu
  • Loading branch information
anand-3399 committed Oct 9, 2022
1 parent f615a24 commit 2afb99a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion ToDo.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Add this layout in Widgets Menu.
https://blogs.windows.com/wp-content/uploads/prod/sites/2/2021/06/WIN_Widgets_Light-Theme_16x9_en-US-1-1024x576.png
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Menu.addEventListener("click", () => {
startmenu.style.bottom = "50px"
startmenu.style.transform = "translateX(0)"
searchmenu.style.bottom = "-655px"
widgetMenu.style.left = "-1000px"
widgetMenu.style.left = "-50%"
}
})

Expand All @@ -25,7 +25,7 @@ SearchIcon.addEventListener("click", () => {
searchmenu.style.bottom = "50px"
searchmenu.style.transform = "translateX(0)"
startmenu.style.bottom = "-655px"
widgetMenu.style.left = "-1000px"
widgetMenu.style.left = "-50%"
}

})
Expand All @@ -35,7 +35,7 @@ widgetMenu = document.getElementsByClassName("widgetMenu")[0]

Widgets.addEventListener("click", () => {
if (widgetMenu.style.left == "0px") {
widgetMenu.style.left = "-1000px"
widgetMenu.style.left = "-50%"

}
else {
Expand Down Expand Up @@ -111,7 +111,7 @@ clickanywhere.addEventListener("click", () => {
searchmenu.style.bottom = "-655px"
}
else if(widgetMenu.style.left == "0px"){
widgetMenu.style.left = "-1000px"
widgetMenu.style.left = "-50%"
}

})
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ figure {

/* Widgets */
.widgetMenu {
left: -1000px;
left: -50%;
transition: all 0.5s ease-in;
height: calc(100% - 90px);
width: 45%;
Expand Down

0 comments on commit 2afb99a

Please sign in to comment.