Skip to content

Commit

Permalink
more good animation and add autoprefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
haukot committed Mar 29, 2015
1 parent 70c5263 commit e4bca49
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ gem 'momentjs-rails', '>= 2.9', :github => 'derekprior/momentjs-rails'
gem 'awesome_print'
gem 'ckeditor', github: 'galetahub/ckeditor'
gem 'configus'

gem 'foundation-rails'
gem "autoprefixer-rails"

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ PLATFORMS
DEPENDENCIES
active_form!
authority
autoprefixer-rails
awesome_print
bcrypt (~> 3.1.7)
better_errors
Expand Down
23 changes: 14 additions & 9 deletions app/assets/stylesheets/web/events.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $slopy-height: 140px;
background-color:#fff;
width:101%;

transition: transform 0.5s ease-out, height 0.5s ease-out;
transition: transform 0.3s ease, height 0.3s ease;

transform: rotate(5.7deg) skewX(6deg);

Expand All @@ -31,8 +31,6 @@ $slopy-height: 140px;
}
.event-container.more-info-viewed {
&:after {
-webkit-transform: rotate(0deg) skewX(0deg);
-ms-transform: rotate(0deg) skewX(0deg);
transform: rotate(0deg) skewX(0deg);
height: 85px;
}
Expand Down Expand Up @@ -65,7 +63,7 @@ $slopy-height: 140px;
}
.when-and-where {
margin-left: - $left-header-margin;
margin-top: 11px;
margin-top: 20px;
.mic-label-black {
font-size: rem-calc(30);
line-height: 40px;
Expand Down Expand Up @@ -122,23 +120,30 @@ $slopy-height: 140px;
.event-content.container {
margin-bottom: 100px;
}

.more-lead-info {
z-index: 1;
margin-left: $event-lead-margin;
background-color: #fff;

// TODO need autoprefixer
transition: transform 0.5s;
transition: transform 0.3s ease-out;
transform-origin: 0 0;
transform: translateY( -118px ) rotateX( -90deg ) rotateY(-5.6deg);
}
.more-lead-info.viewed {
transform: translateY( -60px ) rotateX( 0deg ) rotateY(0deg);
}
.more-lead-info-content {
max-height: 0px;
transition: max-height 0.3s ease-out;
margin-top: 20px;
font-size: rem-calc(18);
color: #333;
}
.more-lead-info.viewed {
transform: translateY( -60px ) rotateX( 0deg ) rotateY(0deg);
.more-lead-info-content {
max-height: 3000px;
}
}

.event-content {
.participans-container {
.title {
Expand Down

0 comments on commit e4bca49

Please sign in to comment.