Template:Team:Bielefeld-Germany/css/frontpage.css
From 2013.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<style> | <style> | ||
- | |||
- | |||
.view { | .view { | ||
width: 300px; | width: 300px; | ||
Line 13: | Line 11: | ||
text-align: center; | text-align: center; | ||
box-shadow: 1px 1px 2px #e6e6e6; | box-shadow: 1px 1px 2px #e6e6e6; | ||
- | + | ||
- | + | ||
} | } | ||
.view .mask, .view .content { | .view .mask, .view .content { | ||
Line 59: | Line 56: | ||
box-shadow: 0 0 5px #000 | box-shadow: 0 0 5px #000 | ||
} | } | ||
+ | |||
+ | |||
+ | .view img { | ||
+ | transition: all 0.2s linear; | ||
+ | } | ||
+ | .view .mask { | ||
+ | opacity: 1; | ||
+ | background-color: rgba(219,127,8, 0.7); | ||
+ | transition: all 0.4s ease-in-out; | ||
+ | transform: translateX(-300px); | ||
+ | } | ||
+ | .view h2 { | ||
+ | transform: translateY(-100px); | ||
+ | opacity: 0; | ||
+ | transition: all 0.2s ease-in-out; | ||
+ | } | ||
+ | .view p { | ||
+ | transform: translateY(100px); | ||
+ | opacity: 0; | ||
+ | transition: all 0.2s linear; | ||
+ | } | ||
+ | .view a.info{ | ||
+ | opacity: 0; | ||
+ | transition: all 0.2s ease-in-out; | ||
+ | } | ||
+ | |||
+ | |||
- | + | .view:hover img { | |
- | .view | + | opacity:0.1; |
- | + | ||
} | } | ||
- | .view | + | .view:hover .mask { |
opacity: 1; | opacity: 1; | ||
+ | transform: translateX(0px); | ||
} | } | ||
- | .view | + | .view:hover h2, |
- | .view | + | .view:hover p, |
- | .view | + | .view:hover a.info { |
opacity: 1; | opacity: 1; | ||
transform: translateY(0px); | transform: translateY(0px); | ||
} | } | ||
- | .view | + | .view:hover p { |
transition-delay: 0.1s; | transition-delay: 0.1s; | ||
} | } | ||
- | .view | + | .view:hover a.info { |
transition-delay: 0.2s; | transition-delay: 0.2s; | ||
} | } | ||
- | |||
- | |||
- | |||
Revision as of 17:35, 2 October 2013