Skip to content

Commit

Permalink
test: add svg
Browse files Browse the repository at this point in the history
  • Loading branch information
theomorphic committed Mar 25, 2024
1 parent d20697e commit 6166049
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 10 deletions.
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
}
Binary file modified img/emotions/looking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/emotions/looking.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/emotions/normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/emotions/normal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/emotions/wondering.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/emotions/wondering.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const mainFace = document.getElementById("mainFace");
const body = document.getElementById("body");

(function(){
// setTimeout(() => {
// mainFace.style.backgroundImage = "url(../img/emotions/wondering.png)";
// }, 2500);
setTimeout(() => {
mainFace.style.backgroundImage = "url(../img/emotions/wondering.svg)";
}, 2500);
setTimeout(() => {
body.classList.remove("start");
mainFace.classList.remove("start");
Expand All @@ -15,7 +15,7 @@ const body = document.getElementById("body");
console.log("%cHe's laid-back and ready to talk",
"color: #1e7062; font-size: 14px")
}, 4000);
// setTimeout(() => {
// mainFace.style.backgroundImage = "";
// }, 5000);
setTimeout(() => {
mainFace.style.backgroundImage = "";
}, 5000);
})();
4 changes: 2 additions & 2 deletions scss/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ body {
}

.mainFace {
background-image: url(../img/emotions/normal.png);
background-image: url(../img/emotions/normal.svg);
background-repeat: no-repeat;
background-size: contain;
width: 250px;
Expand All @@ -34,7 +34,7 @@ body {
}

.mainFace:hover {
background-image: url(../img/emotions/looking.png);
background-image: url(../img/emotions/looking.svg);
animation: none;
}

Expand Down
4 changes: 2 additions & 2 deletions scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body{


.mainFace{
background-image: url(../img/emotions/normal.png);
background-image: url(../img/emotions/normal.svg);
background-repeat: no-repeat;
background-size: contain;
width: 250px;
Expand All @@ -32,7 +32,7 @@ body{


.mainFace:hover{
background-image: url(../img/emotions/looking.png);
background-image: url(../img/emotions/looking.svg);
animation: none;
}

Expand Down

0 comments on commit 6166049

Please sign in to comment.