clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository


Download raw (3.7 KB)

<!DOCTYPE html>
<html lang="en">

  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="shortcut icon" href="">
  <link rel="stylesheet" href="styles.css">
  <!-- <script src="scripts/jquery-1.9.1.js"></script> -->
  <!-- <script src="scripts/jquery-ui-1.9.2.custom.js"></script> -->

  <div id="colors">
    <div class="colored-wrapper"></div>
  <div id="menu"  class="colored-wrapper">
    <ul class="colored-wrapper-content">
      <li>COLOR RESEARCH</li>
      <li>RESEARCH PROJECTS</li>
  <div id="left-menu"  class="colored-wrapper">
    <div class="colored-wrapper-content">
      <h2>Living colors</h2>
        <li>Chelidonium majus</li>
        <li>Dunaliella Salina</li>
        <li>Haematococcus pluvialis</li>
        <li>Porphyridium cruentum</li>
        <li>Isatis Galbana</li>
      <h2>Traditional sources</h2>
  <div id="main" class="colored-wrapper">
      <div class="colored-wrapper-content">
        <h1 class="colored">Colorlab</h1>
          The Color Biolab is a transdisciplinary research project approaching the color field from different perspectives: from sustainable
          production and application, to the use of color as a common language between art and science. Starting from traditional
          coloring, to living organisms or waste, this project aims to reflect about the possibilities of new coloring sources,
          and the implications involved.
          Most of the work has been developed in LABORATORIUM, the experimental lab for art/design and biotechnology at KASK. In LABORATORIUM
          microorganisms have been cultured, pigment extraction has been performed and applied as well as microbial visualization
          or chemical reactions.
          Some of the results generated of this research have been exhibited and presented in national and international conferences
          and art spaces. Knowledge generated is transferred by workshops, presentations and a seminar, in and out of the
          art academy.
  <div id="right-tags" class="colored-wrapper">
      <div class="colored-wrapper-content"></div>

   function gradient(rot, gradient) {
      return 'repeating-linear-gradient(' + rot.toString(10) + 'deg, var(--background-color),  var(--background-color) 1px, transparent 1px,transparent 4px)';

    function initBackgrounds() {
      // document.querySelectorAll('#menu, li, #left-menu').forEach(el => {
      document.querySelectorAll('.colored-wrapper').forEach(el => {
        var rotation = parseInt(Math.random() * 90);
        el.dataset.rotation = rotation;
        el.dataset.speed = (Math.random() * 3) - 1.5; = gradient(rotation, window.getComputedStyle(el).backgroundImage);

    function updateBackgrounds() {
      document.querySelectorAll('.colored-wrapper').forEach(el => {
        var rotation = Math.round((window.scrollY * parseFloat(el.dataset.speed) + parseInt(el.dataset.rotation)) % 360);
        console.log(rotation); = gradient(rotation, window.getComputedStyle(el).backgroundImage);

    document.addEventListener('scroll', updateBackgrounds);