add baxter thought bubbles
add a thought bubble with a cat blob emoji that is displayed when baxter gets headscratches
This commit is contained in:
parent
fc6bb51ccb
commit
7abe038713
|
@ -42,9 +42,6 @@
|
||||||
|
|
||||||
<div class="items">
|
<div class="items">
|
||||||
<img class="baxter-thought"
|
<img class="baxter-thought"
|
||||||
src="./img/baxter-thoughts/baxter-thought-one.webp"
|
|
||||||
alt="a thought bubble symbolizing baxter's
|
|
||||||
reaction to a head scrath"
|
|
||||||
width="100" height="100"
|
width="100" height="100"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,10 @@ const extraLove = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const baxterHeadPat = () => {
|
const baxterHeadPat = () => {
|
||||||
console.log("purrrrrr");
|
const imgSrcArrayNo = Math.floor(Math.random() * 7)
|
||||||
|
console.log(imgSrcArrayNo)
|
||||||
|
const thoughtBubble = document.querySelector(".baxter-thought");
|
||||||
|
thoughtBubble.src = baxterThoughtImgSrc[imgSrcArrayNo];
|
||||||
};
|
};
|
||||||
|
|
||||||
const main = () => {
|
const main = () => {
|
||||||
|
|
|
@ -211,8 +211,8 @@ section {
|
||||||
|
|
||||||
.headpats {
|
.headpats {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 87.12%;
|
left: 86.12%;
|
||||||
top: 19.2%;
|
top: 23.2%;
|
||||||
width: 3%;
|
width: 3%;
|
||||||
height: 3.03%;
|
height: 3.03%;
|
||||||
transform: rotate(17deg);
|
transform: rotate(17deg);
|
||||||
|
|
Loading…
Reference in New Issue