<div class="rvk">
<div class="rocks">
<h2>Reykjavik Rocks</h2>
<h1>Your Luxury Agent in Iceland</h1>
<p>We deliver high end, customized luxury. Complete tailored experience for Iceland whether it is rejuvenation and relaxation, a family trip, a romantic break for a couple, an individual only or a party experience – we can cater to your every need.</p>
<button>About us</button><button>Contact us</button>
</div>
<div class="info">
<i></i>
<div class="about-us">
<p>Reykjavik Rocks is the <strong>complete personalized experience</strong>.</p>
<p>Reykjavik Rocks was founded 2009 by Unnar Helgi Danielsson who has <strong>extensive experience in managing tailored events</strong> in Iceland and London.</p>
<p>We have worked with many groups of people from corporate and educational backgrounds to celebrity and well known public figures.</p>
<p>We also cater for bachelor and bachelorette parties plus weddings, anniversaries, film productions, location and set finding – <strong>any event can be created by Reykjavik Rocks</strong>.</p>
<p>Our concierge phone is also <strong>available 24/7</strong>. Please see the number on the site to call.</p>
</div>
<div class="contact-us">
<p>Our concierge phone is <strong>available 24/7</strong>!</p>
<h3>+354 691 3350</h3>
<p>Please contact us for a <strong>fast response</strong> via email: <a href="mailto:luxury@reykjavik.rocks">luxury@reykjavik.rocks<i></i></a></p>
</div>
</div>
<div class="cover"></div>
<div class="tv">
<div class="screen" id="tv"></div>
</div>
</div>
@import url(http://fonts.googleapis.com/css?family=Oswald);
@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
.font(@family,@size,@line,@spacing) {
font-family: @family, sans-serif;
font-weight: 400;
font-size: @size*1px;
line-height: @size*@line*1px;
letter-spacing: @spacing*1px;
}
html {
width: 100%;
height: 100%;
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
background: #000;
color: #ded4b9;
* {
box-sizing: border-box;
}
.disabled {
pointer-events: none;
}
}
::selection {
background: #777;
color: #777;
}
}
.rvk {
.rocks {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
transform: translateY(-50%);
z-index: 3;
max-width: 1440px;
min-width: 789px;
margin: 0 auto;
padding: 0 80px;
transition: left .75s cubic-bezier(.75,0,.25,1);
transition: left .75s cubic-bezier(.75,0,.25,1);
&.on {
left: 360px;
}
h2 {
width: 235px;
height: 81px;
margin: 0 0 12px;
padding: 0;
overflow: hidden;
background: url('http://reykjavik.rocks/cnt/reykjavik-rocks.svg');
background-size: cover;
opacity: 0;
text-indent: -234%;
&.show {
opacity: 1;
transition: opacity 3s 0s;
transition: opacity 3s 0s;
}
}
h1 {
max-width: 765px;
margin: 0 0 24px;
padding: 0;
opacity: 0;
.font('Oswald',120,1.19,-5);
text-transform: uppercase;
text-align: left;
&.show {
opacity: 1;
transition: opacity 3s 0s;
transition: opacity 3s 0s;
}
}
p {
max-width: 632px;
margin: 0 0 48px 9px;
.font(Montserrat,16,1.625,0);
opacity: 0;
&.show {
opacity: 1;
transition: opacity 3s 1.5s;
transition: opacity 3s 1.5s;
}
}
button {
display: inline-block;
position: relative;
width: auto;
height: 77px;
margin: 0;
padding: 0 39px;
overflow: hidden;
.font(Oswald,20,1,0);
text-transform: uppercase;
background: none;
color: #ded4b9;
opacity: 0;
border: solid 2px #ded4b9;
outline: none;
cursor: pointer;
&.show {
opacity: 1;
transition: opacity 2s 2.5s, color .5s cubic-bezier(.75,0,.25,1);
transition: opacity 2s 2.5s, color .5s cubic-bezier(.75,0,.25,1);
}
&:before {
content: '';
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: .01%;
height: 100%;
background: #ded4b9;
transition: width .5s cubic-bezier(.75,0,.25,1);
transition: width .5s cubic-bezier(.75,0,.25,1);
}
&:hover, &.on {
color: #000;
&:before {
width: 100%;
}
}
&.on {
pointer-events: none;
}
&:first-of-type {
margin-left: 9px;
}
&:last-of-type {
border-left: none;
}
}
}
.info {
position: absolute;
top: 0;
left: -360px;
z-index: 3;
width: 360px;
height: 100%;
background: #f7f3e8;
color: #111;
transition: left .75s cubic-bezier(.6,0,.25,1);
transition: left .75s cubic-bezier(.6,0,.25,1);
> i {
position: absolute;
top: 15px;
left: 15px;
width: 18px;
height: 18px;
opacity: 0;
cursor: pointer;
transition: opacity .5s 1.2s;
transition: opacity .5s 1.2s;
&:before, &:after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 1px;
background: #111;
}
&:before {
transform: translate(-50%,-50%) rotate(45deg);
transform: translate(-50%,-50%) rotate(45deg);
}
&:after {
transform: translate(-50%,-50%) rotate(-45deg);
transform: translate(-50%,-50%) rotate(-45deg);
}
}
> div {
position: absolute;
top: 150%;
left: 0;
transform: translateY(-50%);
transform: translateY(-50%);
padding: 40px;
transition: top .75s cubic-bezier(.75,0,.25,1);
transition: top .75s cubic-bezier(.75,0,.25,1);
p {
.font(Montserrat,14,1.625,0);
margin: 0 0 16px;
strong {
font-weight: 700;
}
}
h3 {
.font(Montserrat,24,1,0);
}
a {
position: relative;
color: #000;
text-decoration: none;
i {
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 1px;
&:before {
content: '';
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 0.001%;
height: 100%;
transition: width 0s, background .5s;
transition: width 0s, background .5s;
}
&:after {
content: '';
display: block;
position: absolute;
right: 0;
bottom: 0;
width: 0.001%;
height: 100%;
background: #000;
transition: width .5s;
transition: width .5s;
}
}
&:hover {
i {
&:before {
width: 100%;
background: #000;
transition: width .5s;
transition: width .5s;
}
&:after {
width: 100%;
background: transparent;
transition: background 0s;
transition: background 0s;
}
}
}
}
&.on {
top: 50%;
transition: top 1.25s cubic-bezier(.75,0,.25,1);
transition: top 1.25s cubic-bezier(.75,0,.25,1);
}
}
&.on {
left: 0;
> i {
opacity: 1;
}
}
}
.cover {
position: absolute;
top: 0;
left: 0;
z-index: 2;
width: 100%;
height: 100%;
background: #000;
opacity: 0;
transition: opacity 4s;
transition: opacity 4s;
&.on {
opacity: .6;
}
}
.tv {
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
overflow: hidden;
background-image: url('http://reykjavik.rocks/cnt/iceland.jpg');
background-size: cover;
background-position: center;
transition: left .75s cubic-bezier(.6,0,.25,1);
transition: left .75s cubic-bezier(.6,0,.25,1);
&.on {
left: 360px;
transition: left 2s;
transition: left 2s;
}
.screen {
position: absolute;
top: 0;
left: 0;
z-index: 1;
margin: auto;
opacity: 0;
transition: opacity 4s;
transition: opacity 4s;
&.on {
opacity: 1;
}
}
}
}
@media (max-width: 920px) {
.rvk {
.rocks {
padding: 0 40px;
&.on {
left: 288px;
}
h2 {
width: 188px;
height: 64px;
}
h1 {
max-width: 620px;
.font('Oswald',96,1.19,-4);
}
p {
max-width: 490px;
margin: 0 0 38px 7px;
.font(Montserrat,14,1.625,0);
}
button {
height: 62px;
padding: 0 32px;
font-size: 16px;
&:first-child {
margin-left: 7px;
}
}
}
.info {
left: -288px;
width: 288px;
> div {
p {
.font(Montserrat,12,1.625,0);
margin: 0 0 12px;
}
h3 {
font-size: 19px;
}
}
}
.tv.on {
left: 288px;
}
}
}
@media (max-width: 680px) {
.rvk {
.rocks {
max-width: inherit;
min-width: inherit;
h2 {
width: 141px;
height: 48px;
}
h1 {
max-width: inherit;
.font('Oswald',48,1.19,-2);
}
p {
max-width: 75%;
margin-bottom: 32px;
.font(Montserrat,13,1.625,0);
}
button {
height: 49px;
padding: 0 25px;
font-size: 13px;
}
}
}
}
@media (max-width: 380px) {
.rvk {
.rocks {
min-width: 320px;
p {
max-width: inherit;
}
}
}
}
@media (max-width: 340px) {
.rvk {
.rocks {
padding: 0 20px;
}
}
}
var tag = document.createElement('script');
tag.src = 'https://www.youtube.com/player_api';
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var tv,
playerDefaults = {autoplay: 0, autohide: 1, modestbranding: 0, rel: 0, showinfo: 0, controls: 0, disablekb: 1, enablejsapi: 0, iv_load_policy: 3};
var vid = {'videoId': 'E4tRyYxrU5w', 'suggestedQuality': 'hd1080', 'startSeconds': 1, 'endSeconds': 196};
function onYouTubePlayerAPIReady(){
tv = new YT.Player('tv', {events: {'onReady': onPlayerReady, 'onStateChange': onPlayerStateChange}, playerVars: playerDefaults});
}
function onPlayerReady(){
tv
.loadVideoById(vid)
.seekTo(Math.floor(Math.random() * (180 - 1 + 1)))
.mute();
}
function onPlayerStateChange(e){
if (e.data === 1){
$('#tv, .cover').addClass('on');
} else if (e.data === 0){
tv.seekTo(vid.startSeconds);
}
}
function vidRescale(){
var w = $(window).width() + 200,
h = $(window).height() + 200;
if (w/h > 16/9){
tv.setSize(w, w/16*9);
$('.tv .screen').css({'left': '0px'});
} else {
tv.setSize(h/9*16, h);
$('.tv .screen').css({'left': -($('.tv .screen').outerWidth()-w)/2});
}
}
$(document).on('ready', function(){
$('button').on('click', function(e){
e.stopPropagation();
$('button').removeClass('on');
$(this).toggleClass('on');
$('.rocks, .info, .tv').addClass('on');
});
$('button:first-of-type').on('click', function(){
$('.info > div').removeClass('on');
$('.about-us').addClass('on');
});
$('button:last-of-type').on('click', function(){
$('.info > div').removeClass('on');
$('.contact-us').addClass('on');
});
$('.info').on('click', function(e){
e.stopPropagation();
});
$('html, .info > i').on('click', function(){
$('button, .rocks, .info, .tv, .about-us, .contact-us').removeClass('on');
});
});
$(window)
.on('load', function(){
vidRescale();
$('.rocks').children().addClass('show');
})
.on('resize', function(){
vidRescale();
});
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59016839-1', 'auto');
ga('send', 'pageview');