Lab #16 CSS Variables
Lab #16 was titled "CSS Variables". What this implies is that within this webpage, you will be able to modify the values of CSS on a page like the spacing, blur and base color of an element. In this lab, you can experiment with these properties on an image.
In this lab, there are multiple properties you can modify on the image. You can use the sliders to adjust the spacing of the image (revealing more of the colored background), blurriness of the image, and the color of the base (background). In the screenshot above of my website, I clicked to modify the base color of the background and a color palette opened up. This demonstrates that you can really make the color of the base anything you want from RGB to hexadecimal.
In order to create this page, in my HTML I had put many labels and inputs to collect user interaction data. The inputs include the sliders which work with the spacing and blurriness. As for the color input, I had kept a JavaScript variable as the color which would update each time it was changed. This applies to all of the properties, as if you modify something on the page using any of the sliders, or change the base color, it will immediately update the page to the corresponding change.
Web designers would need to know how to implement this mechanic in their websites to allow users to be flexible and creative with how they want to modify something. For example, using the color picking option in a logo making website would allow users to freely choose a color they want for their logo simply using JavaScript to modify the CSS variables. In addition, using sliders could be useful for making something transparent or modifying the size, etc. There is much that users could do with modifying their own elements, but it is up to the web designer to allow for them to access it.
In this lab, there are multiple properties you can modify on the image. You can use the sliders to adjust the spacing of the image (revealing more of the colored background), blurriness of the image, and the color of the base (background). In the screenshot above of my website, I clicked to modify the base color of the background and a color palette opened up. This demonstrates that you can really make the color of the base anything you want from RGB to hexadecimal.
In order to create this page, in my HTML I had put many labels and inputs to collect user interaction data. The inputs include the sliders which work with the spacing and blurriness. As for the color input, I had kept a JavaScript variable as the color which would update each time it was changed. This applies to all of the properties, as if you modify something on the page using any of the sliders, or change the base color, it will immediately update the page to the corresponding change.
Web designers would need to know how to implement this mechanic in their websites to allow users to be flexible and creative with how they want to modify something. For example, using the color picking option in a logo making website would allow users to freely choose a color they want for their logo simply using JavaScript to modify the CSS variables. In addition, using sliders could be useful for making something transparent or modifying the size, etc. There is much that users could do with modifying their own elements, but it is up to the web designer to allow for them to access it.

Comments
Post a Comment