You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/04/30 01:33:04 UTC
svn commit: r1741708 - in /incubator/tinkerpop/site: css/bootstrap-mods.css
index.html
Author: okram
Date: Fri Apr 29 23:33:03 2016
New Revision: 1741708
URL: http://svn.apache.org/viewvc?rev=1741708&view=rev
Log:
figured out a cool hover effect for the new token buttons. baller.
Modified:
incubator/tinkerpop/site/css/bootstrap-mods.css
incubator/tinkerpop/site/index.html
Modified: incubator/tinkerpop/site/css/bootstrap-mods.css
URL: http://svn.apache.org/viewvc/incubator/tinkerpop/site/css/bootstrap-mods.css?rev=1741708&r1=1741707&r2=1741708&view=diff
==============================================================================
--- incubator/tinkerpop/site/css/bootstrap-mods.css (original)
+++ incubator/tinkerpop/site/css/bootstrap-mods.css Fri Apr 29 23:33:03 2016
@@ -55,4 +55,86 @@
}
.navbar {
margin-bottom: 0;
+}
+
+.hovereffect {
+width:100%;
+height:100%;
+float:left;
+overflow:hidden;
+position:relative;
+text-align:center;
+cursor:default;
+border-radius:5px;
+}
+
+.hovereffect .overlay {
+width:100%;
+height:100%;
+position:absolute;
+overflow:hidden;
+top:0;
+left:0;
+opacity:0;
+background-color:rgba(0,0,0,0.5);
+-webkit-transition:all .4s ease-in-out;
+transition:all .4s ease-in-out;
+border-radius:5px;
+}
+
+.hovereffect img {
+display:block;
+position:relative;
+-webkit-transition:all .4s linear;
+transition:all .4s linear;
+border-radius:5px;
+}
+
+
+.hovereffect a.info {
+text-decoration:none;
+display:inline-block;
+border-radius:5px;
+color:#fff;
+border:1px solid #fff;
+background-color:transparent;
+opacity:0;
+filter:alpha(opacity=0);
+-webkit-transition:all .2s ease-in-out;
+transition:all .2s ease-in-out;
+margin:25px 0 0;
+padding:5px 5px;
+}
+
+.hovereffect a.info:hover {
+box-shadow:0 0 5px #fff;
+border-radius:5px;
+}
+
+.hovereffect:hover img {
+-ms-transform:scale(1.2);
+-webkit-transform:scale(1.2);
+transform:scale(1.2);
+border-radius:5px;
+}
+
+.hovereffect:hover .overlay {
+opacity:1;
+filter:alpha(opacity=100);
+border-radius:5px;
+}
+
+.hovereffect:hover h2,.hovereffect:hover a.info {
+opacity:1;
+filter:alpha(opacity=100);
+-ms-transform:translatey(0);
+-webkit-transform:translatey(0);
+transform:translatey(0);
+border-radius:5px;
+}
+
+.hovereffect:hover a.info {
+-webkit-transition-delay:.2s;
+transition-delay:.2s;
+border-radius:5px;
}
\ No newline at end of file
Modified: incubator/tinkerpop/site/index.html
URL: http://svn.apache.org/viewvc/incubator/tinkerpop/site/index.html?rev=1741708&r1=1741707&r2=1741708&view=diff
==============================================================================
--- incubator/tinkerpop/site/index.html (original)
+++ incubator/tinkerpop/site/index.html Fri Apr 29 23:33:03 2016
@@ -183,16 +183,16 @@
</div>
<div class="row">
<div class="col-md-5">
- <a href="gremlin.html">
- <img src="images/cityscape-button.png" style="width:200px;" class="img-responsive" />
- </a>
- <small>Understand Gremlin</small>
+ <div class="hovereffect">
+ <img src="images/cityscape-button.png" style="width:200px;" class="img-responsive" /></a>
+ <div class="overlay"><a class="info" href="gremlin.html">Understand Gremlin</a></div>
+ </div>
</div>
<div class="col-md-5">
- <a href="providers.html">
- <img src="images/meeting-room-button.png" style="width:200px;" class="img-responsive" />
- </a>
- <small>Become TinkerPop-Enabled</small>
+ <div class="hovereffect">
+ <img src="images/meeting-room-button.png" style="width:200px;" class="img-responsive" /></a>
+ <div class="overlay"><a class="info" href="providers.html">Become TinkerPop-Enabled</a></div>
+ </div>
</div>
<div class="col-md-2"></div>
</div>