Skip to content

Instantly share code, notes, and snippets.

View mrjuice01's full-sized avatar
💎
🐤

Mr Juice mrjuice01

💎
🐤
View GitHub Profile
@mrjuice01
mrjuice01 / script.vue
Last active January 8, 2024 15:25
Solar System Scale Model
<template>
<div id="app">
<!-- MAIN CONTENT -->
<div class="sun" :style="sunStyle()"></div>
<div
class="planet_container"
:class="`planet_container-${mode}`"
v-for="(p, i) in planetsFiltered"
:style="planetContainerStyle(i)"
@click="onClickPlanetContainer(i)"

Dress Up

This pen uses CSS filters to change the color of the model's garments. I used JavaScript to calculate the offset for the CSS filter function and combined that with a color picker. Color availability and accuracy aren't perfect because they work with a base color that isn't as neutral as it could be. I used an AI-generated model and I used ChatGPT to alphabetize my SCSS properties because, why not use AI to achieve perfection when we can?

A Pen by Connie Finkelman on CodePen.

License.