꒰ ᧔✚᧓ ꒱ interly 🥩's profile picture

Published by

published
updated

Category: Web, HTML, Tech

"LAYOUT" CODE FOR YOU: Interactive Character FOR YOUR PROFILE! !

since layouts r bugged.. i decided to make a blog abt some of the stuff on my profile that i think some ppl would like! i made a interactable character where it squishes when clicked on! ;P

curious on how it looks? just go on my profile!

DOESN'T WORK ON MOBILE ATM! BUT THE IMAGE WILL SHOW, JS NOT THE ANIMATION!


here's the code:

<!-- ============================================= -->

layout created by: 𓊆✚𓊇 interly's Profile | SpaceHey

<!-- ============================================= -->

<!-- LITTLE CHARACTER -->

<!-- ============================================= -->


<div class="pet">


    <img src="(your oc/char! use catbox.moe to add in the link to your character, remove the brackets) "/>


</div>



<style>


/* CHARACTER CONTAINER! This can be changed to your preference */


.pet {

    position: fixed;

    z-index: 60;

    top: 39%;

    right: 220px;

    width: 320px;

    height: 320px;

    transform: translateY(-50%);

    overflow: visible;

    user-select: none;

    cursor: pointer;

}



/* CHARACTER! This can be changed to your preference */


.pet img {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: contain;

    z-index: 2;

    pointer-events: none;

    transform-origin: 50% 100%;

    transform: scale(1, 1);

    transition: transform 0.3s cubic-bezier(.3, 1.9, .5, 1);

    filter: drop-shadow(3px 3px 0 rgba(120, 0, 18, .22));

}



/* HOVER */


.pet:hover img {

    transform: scale(1.03, 1.03);

}



/* SQUISH ON EVERY CLICK! */


.pet:active img,

.pet iframe:active ~ img {

    transform: scale(1.15, 0.78);

    transition: transform 0.04s ease-in;

}




@media (max-width: 1300px) {

    .pet {

        display: block !important;

    }

}


</style>


- interly ♡
comment if theres any issues or if ur using ;P would love to see everyones input! 

also what i mean by comment 4 using i js wanna see what character y’all put im nosy


16 Kudos

—

Comments

Displaying 9 of 9 comments ( View all | Add Comment )

danielmirandato01

danielmirandato01's profile picture

This seems pretty coolio yet i haven't checked your profile cuz of ahem. (-_-'')

is it fine if i use it for the silly fella i have in the corner of my profile


Report Comment



ofc!! any1 can use it! also idm abt ppl under 16-17 viewing my pfp :sob: i js meant as in like adding one another ;P

by ꒰ ᧔✚᧓ ꒱ interly 🥩; ; Report

helloduh

helloduh's profile picture

no he podido comprenderlo


Report Comment



simplemente copia y pega todo, pero modifica esta parte:

by ꒰ ᧔✚᧓ ꒱ interly 🥩; ; Report

Hobby B

Hobby B's profile picture

A tiny clickable character that squishes when poked is exactly the kind of delightful little interaction profile pages are for.


Report Comment

Hobby B

Hobby B's profile picture

A squishable profile character is a delightful little detail. Thanks for sharing the code!


Report Comment

Hobby B

Hobby B's profile picture

A squishable profile character is such a fun little detail. Thanks for sharing the CSS!


Report Comment

INX

INX's profile picture

AWWWWW MIGHT USE IT SOMEDAY


Report Comment

ARIEN ♡'s BLUE COP!!

ARIEN ♡'s BLUE COP!!'s profile picture

THIS IS SUPER CUTE I'M DEFINITELY USING THIS SOMEDAY, THANK YOUUUU! I LOVE UR PROFILE ALSO, VERY CUTENESSSS KEEP UP THE AWESOME WORK!!!


Report Comment



AWW TYY!! UR PROFILE IS CUTE TOOO!

by ꒰ ᧔✚᧓ ꒱ interly 🥩; ; Report

🩷Vanora._.Katzchën._.Monster💚

🩷Vanora._.Katzchën._.Mons...'s profile picture

Awee this is so cute I will probably use this 🩷


Report Comment



thaank yououuo!!! :heart:

by ꒰ ᧔✚᧓ ꒱ interly 🥩; ; Report

𝓑ade

𝓑ade's profile picture

Ur profile is the best I've seen so far waos


Report Comment



THANK UUU UR SO SWEET ! im still workin on it so its so nice to hear feedback :heart:

by ꒰ ᧔✚᧓ ꒱ interly 🥩; ; Report

The fact that is a wip while it looks so good and completes is crazy, you’re rly good at coding and decorating clap clap

by 𝓑ade; ; Report