jay, novice human (
10billionghosts) wrote2025-12-26 12:15 am
Entry tags:
code: DIFFERENCE - a nav code
Hello my friends! I wanted to experiment with making some ?advanced? CSS techniques more accessible while playing with the variable values I saw
lucavi using (their codes are amazingly sleek!!!), and I'm very pleased with the initial results, so! Happy Honda Days!
DIFFERENCE is a simple navigation/splash that utilizes a bunch of CSS tricks. In brief, this code:
CODE HERE:
HOW TO USE:
❣️ This code is mobile compatible!
❣️ It makes a great mobile compatible splash page! Check out Manx's Guide for instructions on how to do that.
❣️ All "sub-sections" in this code are marked by comments for easy editing and removal.
❣️ This design uses variables declared at the very top of the code to customize all colors. Edit these values to update the code! Here's what you'll want to change:
❣️ When it comes to picking a primary image for this code, if you are able I recommend creating an image, yourself, that is 225px wide x 420px tall or at least around that ratio. Otherwise, you CAN tweak background positioning/size to achieve a look you like.
❣️ I'm gonna be SO real with you, toying around with the colors for --OVR might be difficult. The default setting (rust red/brown creating a teal/dark red effect) is pretty consistently nice looking, but if you want to customize a bit more, it requires some experimentation. --OVR uses a "difference" blending. If you've made fancy LJ icons, you're probably familiar with what this means. For those who aren't, that means it will tint lighter colors in the OPPOSITE of the color you've chosen and darker colors in the tone of the color you've chosen.
❣️ You can remove the BRACKET, TEXT, or LINK LIST subsections without affecting the code!
❣️ The bracket is hosted remotely and you should be able to use it without editing.
❣️ plz do not forget to change the anchor text and #URL_HERE placeholder for each link!
❣️ You can add as many links as you'd like. The space to add/remove them is indicated in the code.
❣️ The link list comes with 6 links by default but I am being so forreal feel free to delete some of them if you don't need 'em.
❣️ The TEXT subsection is good for a quote or a brief bit of information about the character, like name, title, age, etc.
❣️ The bracket is an image file (hosted at https://i.ibb.co/bMgZxqfC/bracket.png). The width is 150px. You can replace it with a different bracket if you want?
❣️ This code comes with a credit by default. Appreciate it if you leave it in!
❣️ I love peeking at what people do with my codes, so feel free to comment if you use! If you're feeling generous, you can also donate to my ko-fi -- it's always greatly appreciated!
DIFFERENCE is a simple navigation/splash that utilizes a bunch of CSS tricks. In brief, this code:
- takes ANY image, static or gif, color or black & white, and desaturates it to grayscale.
- applies an overlay layer with a DIFFERENCE filter to create a pop of color over the gray.
- utilizes variables to allow for easier color customization.
- has optional decorative, text block, and link list sections.
HOW TO USE:
❣️ This code is mobile compatible!
❣️ It makes a great mobile compatible splash page! Check out Manx's Guide for instructions on how to do that.
❣️ All "sub-sections" in this code are marked by comments for easy editing and removal.
❣️ This design uses variables declared at the very top of the code to customize all colors. Edit these values to update the code! Here's what you'll want to change:
- --text: controls the regular text color. it is set to #000 (black) by default.
- --imgurl: url(IMG_URL) be sure to update IMG_URL here to the image you want to use!!
- --ovr: controls the overlay pop of color on the image; it is set to #A52A2A by default, which creates a teal + rust effect. The colors listed on this page are generally very effective replacements for the default color on this. by default it's #A52A2A (brown).
- --lnk: is the color of text on a link. white by default.
- --lnkbg: is the background color for links. black by default.
❣️ When it comes to picking a primary image for this code, if you are able I recommend creating an image, yourself, that is 225px wide x 420px tall or at least around that ratio. Otherwise, you CAN tweak background positioning/size to achieve a look you like.
❣️ I'm gonna be SO real with you, toying around with the colors for --OVR might be difficult. The default setting (rust red/brown creating a teal/dark red effect) is pretty consistently nice looking, but if you want to customize a bit more, it requires some experimentation. --OVR uses a "difference" blending. If you've made fancy LJ icons, you're probably familiar with what this means. For those who aren't, that means it will tint lighter colors in the OPPOSITE of the color you've chosen and darker colors in the tone of the color you've chosen.
❣️ You can remove the BRACKET, TEXT, or LINK LIST subsections without affecting the code!
❣️ The bracket is hosted remotely and you should be able to use it without editing.
❣️ plz do not forget to change the anchor text and #URL_HERE placeholder for each link!
❣️ You can add as many links as you'd like. The space to add/remove them is indicated in the code.
❣️ The link list comes with 6 links by default but I am being so forreal feel free to delete some of them if you don't need 'em.
❣️ The TEXT subsection is good for a quote or a brief bit of information about the character, like name, title, age, etc.
❣️ The bracket is an image file (hosted at https://i.ibb.co/bMgZxqfC/bracket.png). The width is 150px. You can replace it with a different bracket if you want?
❣️ This code comes with a credit by default. Appreciate it if you leave it in!
❣️ I love peeking at what people do with my codes, so feel free to comment if you use! If you're feeling generous, you can also donate to my ko-fi -- it's always greatly appreciated!

too lazy to log out but same person as wingedvoices on plurk
these are very, very cool.
also eugene as a pb ftw
Re: too lazy to log out but same person as wingedvoices on plurk
Game changer for SURE being able to declare variables at the top of the code. I hope it increases usability/customizability.
LOVE EUGENE YANG ALSO. Made a 350 icon set of him that I never actually used. lmao
no subject
I think it definitely does already, being able to only change things in one spot is a GREAT feature!
(Just knowing that you can declare on DW is so nice, I see snippets all the time that I've just ignored because I assumed only `<[whatever] style="[stuff]";>` or similar was going to work. I think there are probably still things I want to do that you really need to be able to get at least into the head if not the stylesheet for, but variables are huge.)
He's so fantastic. I still love the [ahem, remaining — and new!] guys [gender neutral] but I very much hope he's off doing amazing things if I can't watch him on YT all the time. (350 o_O! MAN. Now I really want to find a reason to use him as a faceclaim >_>)
no subject
no subject