Line 19: | Line 19: | ||
<!-- <link rel="stylesheet" type="text/css" | <!-- <link rel="stylesheet" type="text/css" | ||
href="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/style&action=raw&ctype=text/css" /> --> | href="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/style&action=raw&ctype=text/css" /> --> | ||
− | |||
− | |||
</head> | </head> | ||
Line 27: | Line 25: | ||
<section> | <section> | ||
<div class="container row"> | <div class="container row"> | ||
− | <main | + | <main class="banner"> |
− | + | <div class="bannerImg" | |
− | <div class=" | + | |
style="background-image: url(https://static.igem.org/mediawiki/2021/f/fd/T--XJTU-China--bg.jpg)"> | style="background-image: url(https://static.igem.org/mediawiki/2021/f/fd/T--XJTU-China--bg.jpg)"> | ||
</div> | </div> | ||
− | <h2 class="trigger-headline trigger-headline--hidden bannerHeader"> | + | <h2 class="trigger-headline trigger-headline--hidden bannerHeader word word--1"> |
</h2> | </h2> | ||
</main> | </main> | ||
Line 211: | Line 208: | ||
src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/bootstrapJS&action=raw&ctype=text/javascript"></script> | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/bootstrapJS&action=raw&ctype=text/javascript"></script> | ||
<script type="text/javascript" | <script type="text/javascript" | ||
− | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/ | + | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/lottie&action=raw&ctype=text/javascript"></script> |
+ | <script type="text/javascript" | ||
+ | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/charming&action=raw&ctype=text/javascript"></script> | ||
+ | <script type="text/javascript" | ||
+ | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/anime&action=raw&ctype=text/javascript"></script> | ||
<script type="text/javascript" | <script type="text/javascript" | ||
− | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/ | + | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/wordFX&action=raw&ctype=text/javascript"></script> |
<!--viewBtn--> | <!--viewBtn--> | ||
Line 268: | Line 269: | ||
})(); | })(); | ||
+ | </script> | ||
+ | <!-- Decorative Letter Animations --> | ||
+ | <script> | ||
</script> | </script> | ||
<!--Hin./ious--> | <!--Hin./ious--> | ||
<script> | <script> | ||
+ | function fLetterAnimation() { | ||
+ | const effects = [ | ||
+ | { | ||
+ | options: { | ||
+ | shapeColors: ['#6435ea', '#295ddc', '#9fd7ff', '#d65380', '#0228f7', '#242627'] | ||
+ | }, | ||
+ | hide: { | ||
+ | lettersAnimationOpts: { | ||
+ | duration: 800, | ||
+ | delay: (t, i) => i * 40, | ||
+ | easing: 'easeOutExpo', | ||
+ | opacity: { | ||
+ | value: 0, | ||
+ | duration: 100, | ||
+ | delay: (t, i) => i * 40, | ||
+ | easing: 'linear' | ||
+ | }, | ||
+ | translateY: ['0%', '100%'] | ||
+ | } | ||
+ | }, | ||
+ | show: { | ||
+ | lettersAnimationOpts: { | ||
+ | duration: 800, | ||
+ | delay: (t, i) => i * 40, | ||
+ | easing: 'easeOutElastic', | ||
+ | opacity: [0, 1], | ||
+ | translateY: ['100%', '0%'] | ||
+ | }, | ||
+ | shapesAnimationOpts: { | ||
+ | duration: 300, | ||
+ | delay: (t, i) => i * 30 + 100, | ||
+ | easing: 'easeOutQuad', | ||
+ | translateY: () => [anime.random(-15, 15), anime.random(-200, 200)], | ||
+ | scale: () => [0.2, randomBetween(0.5, 1)], | ||
+ | opacity: [ | ||
+ | { | ||
+ | value: 1, | ||
+ | duration: 1, | ||
+ | delay: (t, i) => i * 30 + 100 | ||
+ | }, | ||
+ | { | ||
+ | value: 0, | ||
+ | duration: 200, | ||
+ | delay: 200, | ||
+ | easing: 'linear' | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ]; | ||
+ | |||
+ | class Slideshow { | ||
+ | constructor(el) { | ||
+ | this.DOM = {}; | ||
+ | this.DOM.el = el; | ||
+ | this.DOM.words = Array.from(this.DOM.el.querySelectorAll('.word')); | ||
+ | this.current = 0; | ||
+ | this.words = []; | ||
+ | this.DOM.words.forEach((word, pos) => { | ||
+ | this.words.push(new Word(word, effects[pos].options)); | ||
+ | }); | ||
+ | |||
+ | this.isAnimating = true; | ||
+ | this.words[this.current].show(effects[this.current].show).then(() => this.isAnimating = false); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | const slideshow = new Slideshow(document.querySelector('.banner')); | ||
+ | |||
+ | }; | ||
+ | |||
var fHincious = (function () { | var fHincious = (function () { | ||
var box = document.querySelector('.bannerHeader'); | var box = document.querySelector('.bannerHeader'); | ||
Line 288: | Line 364: | ||
box.innerHTML = str; | box.innerHTML = str; | ||
clearInterval(coding); | clearInterval(coding); | ||
+ | fLetterAnimation(); | ||
} | } | ||
}, 200) | }, 200) |
Revision as of 02:16, 13 July 2021
Brief Intro.
a tryptophan producer
Synthetic biology is a science discipline that differs a lot from the others. Usually, you would use the scientific method to obtain results in the majority of life sciences, centering your work on making observations and performing experiments. However, synthetic biology goes beyond that, it is all about constructing something new from parts (biological parts if you may). That is why, sometimes the engineering design process fits better with these projects, since a product has to be built, a machine that performs a task, where it is more important what it does rather than how, yet still has to be tested. Funnily enough, that's why iGEM stands for genetically engineered machines.
To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon,
the main menu appears beneath and the menu icon slides to the right side while the label slides up.o be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up.ide menu found on YouTube. When clicking on the menu label and icon, To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up.