jquery分类筛选动画瀑布流代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jquery分类筛选动画瀑布流代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jquery分类筛选动画瀑布流代码

HTML代码(index.html):

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Isotope</title>
  
  <!--[if lt IE 9]><script src="js/html5.js"></script>
	<![endif]-->
  
<link rel="stylesheet" href="css/style.css" />
  
</head>
<body class="homepage ">
  
  <nav id="site-nav">
    <h1><a href="index.html">Isotope</a></h1>

    <h2>Docs</h2>
    
    <h2>Demos</h2>
    
    <h2>Custom layout modes</h2>
 
    <h2>Tests</a></h2>
    
  </nav> <!-- #site-nav -->
  
  <section id="content">
    

      <section id="options" class="clearfix">
    <div class="option-combo">
      <h2>Filter:</h2>
      <ul id="filter" class="option-set clearfix" data-option-key="filter">
        <li><a href="#show-all" data-option-value="*" class="selected">show all</a></li>
        <li><a href="#elements" data-option-value=".element:not(.feature)">elements</a></li>
        <li><a href="#features" data-option-value=".feature">features</a></li>
        <li><a href="#examples" data-option-value=".example">examples</a></li>
      </ul>
    </div>
    <div class="option-combo">
      <h2>Sort:</h2>
      <ul id="sort" class="option-set clearfix" data-option-key="sortBy">
        <li><a href="#mixed" data-option-value="number" class="selected">mixed</a></li>
        <li><a href="#original" data-option-value="original-order">original</a></li>
        <li><a href="#alphabetical" data-option-value="alphabetical">alphabetical</a></li>
      </ul>
    </div>
    <div class="option-combo">
      <h2>Layout: </h2>
      <ul id="layouts" class="option-set clearfix" data-option-key="layoutMode">
        <li><a href="#masonry" data-option-value="masonry" class="selected">masonry</a></li>
        <li><a href="#fitRows" data-option-value="fitRows">fitRows</a></li>
        <li><a href="#straightDown" data-option-value="straightDown">straightDown</a></li>
      </ul>
    </div>
  </section>
  
  <div id="container" class="super-list variable-sizes clearfix">
    
      
          
    <div class="element alkaline-earth metal   " data-symbol="Mg" data-category="alkaline-earth">
      <p class="number">12</p>
      <h3 class="symbol">Mg</h3>
      <h2 class="name">Magnesium</h2>
      <p class="weight">24.305</p>
    </div>
    
      
          
    <div class="element actinoid metal inner-transition   " data-symbol="U" data-category="actinoid">
      <p class="number">92</p>
      <h3 class="symbol">U</h3>
      <h2 class="name">Uranium</h2>
      <p class="weight">238.02891</p>
    </div>
    
      
          
    <div class="element lanthanoid metal inner-transition   " data-symbol="Gd" data-category="lanthanoid">
      <p class="number">64</p>
      <h3 class="symbol">Gd</h3>
      <h2 class="name">Gadolinium</h2>
      <p class="weight">157.25</p>
    </div>
    
      
          
    <div class="element transition metal   " data-symbol="Y" data-category="transition">
      <p class="number">39</p>
      <h3 class="symbol">Y</h3>
      <h2 class="name">Yttrium</h2>
      <p class="weight">88.90585</p>
    </div>
    
      
          
    <div class="element metalloid   " data-symbol="B" data-category="metalloid">
      <p class="number">5</p>
      <h3 class="symbol">B</h3>
      <h2 class="name">Boron</h2>
      <p class="weight">10.811</p>
    </div>
    
      
          
    <div class="element transition metal   " data-symbol="Fe" data-category="transition">
      <p class="number">26</p>
      <h3 class="symbol">Fe</h3>
      <h2 class="name">Iron</h2>
      <p class="weight">55.845</p>
    </div>
    
      
          
    <div class="element actinoid metal inner-transition   " data-symbol="Am" data-category="actinoid">
      <p class="number">95</p>
      <h3 class="symbol">Am</h3>
      <h2 class="name">Americium</h2>
      <p class="weight">(243)</p>
    </div>
    
      
          
    <div class="element transition metal   " data-symbol="Zn" data-category="transition">
      <p class="number">30</p>
      <h3 class="symbol">Zn</h3>
      <h2 class="name">Zinc</h2>
      <p class="weight">65.38</p>
    </div>
    
      
          
    <div class="element lanthanoid metal inner-transition   " data-symbol="Pm" data-category="lanthanoid">
      <p class="number">61</p>
      <h3 class="symbol">Pm</h3>
      <h2 class="name">Promethium</h2>
      <p class="weight">(145)</p>
    </div>
    
      
          
    <div class="element post-transition metal   " data-symbol="In" data-category="post-transition">
      <p class="number">49</p>
      <h3 class="symbol">In</h3>
      <h2 class="name">Indium</h2>
      <p class="weight">114.818</p>
    </div>
    
      
          
    <div class="element metalloid   " data-symbol="As" data-category="metalloid">
      <p class="number">33</p>
      <h3 class="symbol">As</h3>
      <h2 class="name">Arsenic</h2>
      <p class="weight">74.9216</p>
    </div>
    
      
          
    <div class="element lanthanoid metal inner-transition   " data-symbol="Er" data-category="lanthanoid">
      <p class="number">68</p>
      <h3 class="symbol">Er</h3>
      <h2 class="name">Erbium</h2>
      <p class="weight">167.259</p>
    </div>
    
      
          
    <div class="element other nonmetal   " data-symbol="Se" data-category="other">
      <p class="number">34</p>
      <h3 class="symbol">Se</h3>
      <h2 class="name">Selenium</h2>
      <p class="weight">78.96</p>
    </div>
    
      
          
    <div class="element alkaline-earth metal   " data-symbol="Sr" data-category="alkaline-earth">
      <p class="number">38</p>
      <h3 class="symbol">Sr</h3>
      <h2 class="name">Strontium</h2>
      <p class="weight">87.62</p>
    </div>
    
      
          
    <div class="element transition metal   " data-symbol="Zr" data-category="transition">
      <p class="number">40</p>
      <h3 class="symbol">Zr</h3>
      <h2 class="name">Zirconium</h2>
      <p class="weight">91.224</p>
    </div>
    
      
          
    <div class="element halogen nonmetal   " data-symbol="At" data-category="halogen">
      <p class="number">85</p>
      <h3 class="symbol">At</h3>
      <h2 class="name">Astatine</h2>
      <p class="weight">(210)</p>
    </div>
    
      
          
    <div class="element transition metal   " data-symbol="Nb" data-category="transition">
      <p class="number">41</p>
      <h3 class="symbol">Nb</h3>
      <h2 class="name">Niobium</h2>
      <p class="weight">92.90638</p>
    </div>
    
      
          
    <div class="element other nonmetal   " data-symbol="O" data-category="other">
      <p class="number">8</p>
      <h3 class="symbol">O</h3>
      <h2 class="name">Oxygen</h2>
      <p class="weight">15.9994</p>
    </div>
    
      
          
    <div class="element actinoid metal inner-transition   " data-symbol="Bk" data-category="actinoid">
      <p class="number">97</p>
      <h3 class="symbol">Bk</h3>
      <h2 class="name">Berkelium</h2>
      <p class="weight">(247)</p>
    </div>
    
      
          
    <div class="element halogen nonmetal   " data-symbol="F" data-category="halogen">
      <p class="number">9</p>
      <h3 class="symbol">F</h3>
      <h2 class="name">Fluorine</h2>
      <p class="weight">18.9984032</p>
    </div>
    
      
          
    <div class="element actinoid metal inner-transition   " data-symbol="Cf" data-category="actinoid">
      <p class="number">98</p>
      <h3 class="symbol">Cf</h3>
      <h2 class="name">Californium</h2>
      <p class="weight">(251)</p>
    </div>
    
      
          
    <div class="element noble-gas nonmetal   " data-symbol="Ne" data-category="noble-gas">
      <p class="number">10</p>
      <h3 class="symbol">Ne</h3>
      <h2 class="name">Neon</h2>
      <p class="weight">20.1797</p>
    </div>
    
      
          
    <div class="element other nonmetal   " data-symbol="P" data-category="other">
      <p class="number">15</p>
      <h3 class="symbol">P</h3>
      <h2 class="name">Phosphorus</h2>
      <p class="weight">30.973762</p>
    </div>
    
      
          
    <div class="element actinoid metal inner-transition   " data-symbol="Fm" data-category="actinoid">
      <p class="number">100</p>
      <h3 class="symbol">Fm</h3>
      <h2 class="name">Fermium</h2>
      <p class="weight">(257)</p>
    </div>
    
      
          
    <div class="element other nonmetal   " data-symbol="S" data-category="other">
      <p class="number">16</p>
      <h3 class="symbol">S</h3>
      <h2 class="name">Sulfur</h2>
      <p class="weight">32.065</p>
    </div>
    
      
          
    <div class="element alkaline-earth metal   " data-symbol="Ca" data-category="alkaline-earth">
      <p class="number">20</p>
      <h3 class="symbol">Ca</h3>
      <h2 class="name">Calcium</h2>
      <p class="weight">40.078</p>
    </div>
    
      
          
    <div class="element other nonmetal   " data-symbol="C" data-category="other">
      <p class="number">6</p>
      <h3 class="symbol">C</h3>
      <h2 class="name">Carbon</h2>
      <p class="weight">12.0107</p>
    </div>
    
      
          
    <div class="element alkali metal   " data-symbol="Rb" data-category="alkali">
      <p class="number">37</p>
      <h3 class="symbol">Rb</h3>
      <h2 class="name">Rubidium</h2>
      <p class="weight">85.4678</p>
    </div>
    
      
          
    <div class="element post-transition metal   " data-symbol="Uup" data-category="post-transition">
      <p class="number">115</p>
      <h3 class="symbol">Uup</h3>
      <h2 class="name">Ununpentium</h2>
      <p class="weight">(288)</p>
    </div>
    
      
          
    <div class="element transition metal   " data-symbol="Sc" data-category="transition">
      <p class="number">21</p>
      <h3 class="symbol">Sc</h3>
      <h2 class="name">Scandium</h2>
      <p class="weight">44.955912</p>
    </div>
    
    
      <div class="element feature alkali width2 height2">
        <p class="number">1</p>
        <h3 class="symbol">Iso</h3>
        <h2 class="name">An exquisite jQuery plugin for magical&nbsp;layouts</h2>
      </div>
    
      <div class="element feature actinoid width2 height2">
        <p class="number">31</p>
        <h3 class="symbol">Dyn</h3>
        <h2 class="name">Dynamic, intelligent layouts</h2>
      </div>
    
      <div class="element feature lanthanoid width2 height2">
        <p class="number">27</p>
        <h3 class="symbol">Srt</h3>
        <h2 class="name">Re&ndash;order items with&nbsp;sorting</h2>
      </div>
    
      <div class="element feature metalloid width2 height2">
        <p class="number">61</p>
        <h3 class="symbol">Pow</h3>
        <h2 class="name">Powerful methods, simple&nbsp;syntax</h2>
      </div>
    
      <div class="element feature alkaline-earth width2 height2">
        <p class="number">11</p>
        <h3 class="symbol">Flt</h3>
        <h2 class="name">Reveal &amp; hide items with&nbsp;filtering</h2>
      </div>
    
      <div class="element feature transition width2 height2">
        <p class="number">41</p>
        <h3 class="symbol">Ani</h3>
        <h2 class="name">Captivating animations</h2>
      </div>
    
      <div class="element feature halogen width2 height2">
        <p class="number">71</p>
        <h3 class="symbol">Pro</h3>
        <h2 class="name">Progressively enhanced for CSS3 transforms &amp;&nbsp;transitions</h2>
      </div>
    
      <div class="element feature post-transition width2 height2">
        <p class="number">51</p>
        <h3 class="symbol">Any</h3>
        <h2 class="name">Sort items by just about&nbsp;anything</h2>
      </div>
    
    <div class="link" data-number="5"><a href="#">标题</a></div>
    <div class="link" data-number="13"><a href="#">标题</a></div> 
    <div class="link away" data-number="35"><a href="#">标题</a></div>
  </div>

  <div id="sites"></div>
  
  
  <script src="js/jquery-1.7.1.min.js"></script>
  <script src="js/jquery.isotope.min.js"></script>
  <script>
    $(function(){
    
      var $container = $('#container');
    
      $container.isotope({
        masonry: {
          columnWidth: 120
        },
        sortBy: 'number',
        getSortData: {
          number: function( $elem ) {
            var number = $elem.hasClass('element') ? 
              $elem.find('.number').text() :
              $elem.attr('data-number');
            return parseInt( number, 10 );
          },
          alphabetical: function( $elem ) {
            var name = $elem.find('.name'),
                itemText = name.length ? name : $elem;
            return itemText.text();
          }
        }
      });
    
      
      var $optionSets = $('#options .option-set'),
          $optionLinks = $optionSets.find('a');

      $optionLinks.click(function(){
        var $this = $(this);
        // don't proceed if already selected
        if ( $this.hasClass('selected') ) {
          return false;
        }
        var $optionSet = $this.parents('.option-set');
        $optionSet.find('.selected').removeClass('selected');
        $this.addClass('selected');
  
        // make option object dynamically, i.e. { filter: '.my-filter-class' }
        var options = {},
            key = $optionSet.attr('data-option-key'),
            value = $this.attr('data-option-value');
        // parse 'false' as false boolean
        value = value === 'false' ? false : value;
        options[ key ] = value;
        if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
          // changes in layout modes need extra logic
          changeLayoutMode( $this, options )
        } else {
          // otherwise, apply new options
          $container.isotope( options );
        }
        
        return false;
      });


    
      // Sites using Isotope markup
      var $sites = $('#sites'),
          $sitesTitle = $('<h2 class="loading"><img src="images/qkKy8.gif" />Loading sites using Isotope</h2>'),
          $sitesList = $('<ul class="clearfix"></ul>');
        
      $sites.append( $sitesTitle ).append( $sitesList );

      $sitesList.isotope({
        layoutMode: 'cellsByRow',
        cellsByRow: {
          columnWidth: 290,
          rowHeight: 400
        }
      });
    
      var ajaxError = function(){
        $sitesTitle.removeClass('loading').addClass('error')
          .text('Could not load sites using Isotope :(');
      };
    
      // dynamically load sites using Isotope from Zootool
      $.getJSON('http://zootool.com/api/users/items/?username=desandro' +
          '&apikey=8b604e5d4841c2cd976241dd90d319d7' +
          '&tag=bestofisotope&callback=?')
        .error( ajaxError )
        .success(function( data ){

          // proceed only if we have data
          if ( !data || !data.length ) {
            ajaxError();
            return;
          }
          var items = [],
              item, datum;

          for ( var i=0, len = data.length; i < len; i++ ) {
            datum = data[i];
            item = '<li><a href="' + datum.url + '">'
              + '<img src="' + datum.image.replace('/l.', '/m.') + '" />'
              + '<b>' + datum.title + '</b>'
              + '</a></li>';
            items.push( item );
          }
        
          var $items = $( items.join('') )
            .addClass('example');
            
          // set random number for each item
          $items.each(function(){
            $(this).attr('data-number', ~~( Math.random() * 100 + 15 ));
          });
        
          $items.imagesLoaded(function(){
            $sitesTitle.removeClass('loading').text('Sites using Isotope');
            $container.append( $items );
            $items.each(function(){
              var $this = $(this),
                  itemHeight = Math.ceil( $this.height() / 120 ) * 120 - 10;
              $this.height( itemHeight );
            });
            $container.isotope( 'insert', $items );
          });
        
        });
    
    
    });
  </script>
  </section>
</body>
</html>





JS代码(html5.js):

/*! HTML5 Shiv vpre3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed Uncompressed source:https://github.com/aFarkas/html5shiv */
(function(a,b){
	function h(a,b){
	var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;
	return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}
function i(){
	var a=l.elements;
	return typeof a=="string"?a.split(" "):a}
function j(a){
	var b={
}
,c=a.createElement,f=a.createDocumentFragment,g=f();
	a.createElement=function(a){
	if(!l.shivMethods)return c(a);
	var f;
	return b[a]?f=b[a].cloneNode():e.test(a)?f=(b[a]=c(a)).cloneNode():f=c(a),f.canHaveChildren&&!d.test(a)?g.appendChild(f):f}
,a.createDocumentFragment=Function("h,f","return function(){
	var n=f.cloneNode(),c=n.createElement;
	h.shivMethods&&("+i().join().replace(/\w+/g,function(a){
	return c(a),g.createElement(a),'c("'+a+'")'}
)+");
	return n}
")(l,g)}
function k(a){
	var b;
	return a.documentShived?a:(l.shivCSS&&!f&&(b=!!h(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{
	display:block}
audio{
	display:none}
canvas,video{
	display:inline-block;
	*display:inline;
	*zoom:1}
[hidden]{
	display:none}
audio[controls]{
	display:inline-block;
	*display:inline;
	*zoom:1}
mark{
	background:#FF0;
	color:#000}
")),g||(b=!j(a)),b&&(a.documentShived=b),a)}
var c=a.html5||{
}
,d=/^<|^(?:button|form|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,f,g;
	(function(){
	var c=b.createElement("a");
	c.innerHTML="<xyz></xyz>",f="hidden"in c,f&&typeof injectElementWithStyles=="function"&&injectElementWithStyles("#modernizr{
}
",function(b){
	b.hidden=!0,f=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).display=="none"}
),g=c.childNodes.length==1||function(){
	try{
	b.createElement("a")}
catch(a){
	return!0}
var c=b.createDocumentFragment();
	return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}
()}
)();
	var l={
	elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:k}
;
	a.html5=l,k(b)}
)(this,document)

CSS代码(style.css):

/* Start:Recommended Isotope styles */
/**** Isotope Filtering ****/
.isotope-item{z-index:2;}
.isotope-hidden.isotope-item{pointer-events:none;z-index:1;}
/**** Isotope CSS3 transitions ****/
.isotope,.isotope .isotope-item{-webkit-transition-duration:0.8s;-moz-transition-duration:0.8s;-ms-transition-duration:0.8s;-o-transition-duration:0.8s;transition-duration:0.8s;}
.isotope{-webkit-transition-property:height,width;-moz-transition-property:height,width;-ms-transition-property:height,width;-o-transition-property:height,width;transition-property:height,width;}
.isotope .isotope-item{-webkit-transition-property:-webkit-transform,opacity;-moz-transition-property:-moz-transform,opacity;-ms-transition-property:-ms-transform,opacity;-o-transition-property:-o-transform,opacity;transition-property:transform,opacity;}
/**** disabling Isotope CSS3 transitions ****/
.isotope.no-transition,.isotope.no-transition .isotope-item,.isotope .isotope-item.no-transition{-webkit-transition-duration:0s;-moz-transition-duration:0s;-ms-transition-duration:0s;-o-transition-duration:0s;transition-duration:0s;}
/* End:Recommended Isotope styles */
/* disable CSS transitions for containers with infinite scrolling*/
.isotope.infinite-scrolling{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;}
/**** Base styles ****/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}
body{padding:20px;font-family:'Lucida Sans','Lucida Sans Regular','Lucida Grande','Lucida Sans Unicode',Arial,sans-serif;font-size:13px;line-height:1.7em;background:#1F1E1D;color:#FFF;}
h1,h2,h3,p,ul,ol,pre,dl{margin-bottom:1.0em;}
h1,h2,#super-list,.element,.tagline,#index-list,.super-list .link{font-family:'Helvetica Neue',Arial,sans-serif;}
h1,h2,h3{font-weight:bold;}
h1{font-size:32px;line-height:1.1em;}
h2{font-size:24px;line-height:1.1em;}
ul,ol{margin-left:1.5em;}
a,a code{color:#FB4;text-decoration:none;}
a:hover,a:hover code{color:#4BF;}
a:active,a:active code{color:#1FB;background:black;}
a img{border:none;}
em{font-style:italic;}
strong{font-weight:bold;}
blockquote{padding-left:1.0em;margin-left:1.0em;border-left:1px solid #333;font-style:italic;}
/**** Isotope styles ****/
/* required for containers to inherit vertical size from window */
html,body{height:100%;}
#container{border:1px solid #666;padding:5px;margin-bottom:20px;}
.element{width:110px;height:110px;margin:5px;float:left;overflow:hidden;position:relative;background:#888;color:#222;-webkit-border-top-right-radius:1.2em;-moz-border-radius-topright:1.2em;border-top-right-radius:1.2em;}
.element.alkali{background:#F00;background:hsl( 0,100%,50%);}
.element.alkaline-earth{background:#F80;background:hsl( 36,100%,50%);}
.element.lanthanoid{background:#FF0;background:hsl( 72,100%,50%);}
.element.actinoid{background:#0F0;background:hsl( 108,100%,50%);}
.element.transition{background:#0F8;background:hsl( 144,100%,50%);}
.element.post-transition{background:#0FF;background:hsl( 180,100%,50%);}
.element.metalloid{background:#08F;background:hsl( 216,100%,50%);}
.element.other.nonmetal{background:#00F;background:hsl( 252,100%,50%);}
.element.halogen{background:#F0F;background:hsl( 288,100%,50%);}
.element.noble-gas{background:#F08;background:hsl( 324,100%,50%);}
.element *{position:absolute;margin:0;}
.element .symbol{left:0.2em;top:0.4em;font-size:3.8em;line-height:1.0em;color:#FFF;}
.element.large .symbol{font-size:4.5em;}
.element.fake .symbol{color:#000;}
.element .name{left:0.5em;bottom:1.6em;font-size:1.05em;}
.element .weight{font-size:0.9em;left:0.5em;bottom:0.5em;}
.element .number{font-size:1.25em;font-weight:bold;color:hsla(0,0%,0%,.5);right:0.5em;top:0.5em;}
.variable-sizes .element.width2{width:230px;}
.variable-sizes .element.height2{height:230px;}
.variable-sizes .element.width2.height2{font-size:2.0em;}
.element.large,.variable-sizes .element.large,.variable-sizes .element.large.width2.height2{font-size:3.0em;width:350px;height:350px;z-index:100;}
.clickable .element:hover{cursor:pointer;}
.clickable .element:hover h3{text-shadow:0 0 10px white,0 0 10px white;}
.clickable .element:hover h2{color:white;}
/**** Example Options ****/
#options{padding-bottom:1.0em;}
#options h3{margin-bottom:0.2em;font-size:15px;}
#options h4{font-weight:bold;}
#options ul{margin:0;list-style:none;}
#options ul ul{margin-left:1.5em;}
#options li{float:left;margin-bottom:0.2em;}
#options li a{display:block;padding:0.4em 0.5em;background-color:#DDD;color:#222;font-weight:bold;text-shadow:0 1px hsla( 0,0%,100%,0.5 );background-image:-webkit-linear-gradient( top,hsla( 0,0%,100%,0.5 ),hsla( 0,0%,100%,0.0 ) );background-image:-moz-linear-gradient( top,hsla( 0,0%,100%,0.5 ),hsla( 0,0%,100%,0.0 ) );background-image:-ms-linear-gradient( top,hsla( 0,0%,100%,0.5 ),hsla( 0,0%,100%,0.0 ) );background-image:-o-linear-gradient( top,hsla( 0,0%,100%,0.5 ),hsla( 0,0%,100%,0.0 ) );background-image:linear-gradient( top,hsla( 0,0%,100%,0.5 ),hsla( 0,0%,100%,0.0 ) );}
#options li a:hover{background-color:#5BF;}
#options li a:active{background-color:#39D;-webkit-box-shadow:inset 0 2px 8px hsla( 0,0%,0%,0.6 );-moz-box-shadow:inset 0 2px 8px hsla( 0,0%,0%,0.6 );-o-box-shadow:inset 0 2px 8px hsla( 0,0%,0%,0.6 );box-shadow:inset 0 2px 8px hsla( 0,0%,0%,0.6 );}
#options li a{border-left:1px solid hsla( 0,0%,100%,0.3 );border-right:1px solid hsla( 0,0%,0%,0.2 );}
#options li:first-child a{border-radius:7px 0 0 7px;border-left:none;}
#options li:last-child a{border-radius:0 7px 7px 0;}
#options li a.selected{background-color:#13F;text-shadow:none;color:white;}
/* Combination filter options*/
#options .option-combo{display:inline-block;float:left;margin-right:10px;}
#options .option-combo ul{margin-right:20px;display:inline-block;}
#options .option-combo h2,#options .option-combo h4{line-height:34px;margin-bottom:0;margin-right:5px;display:inline-block;vertical-align:top;}
/* Color shapes */
.color-shape{width:70px;height:70px;margin:5px;float:left;}
.color-shape.round{-webkit-border-radius:35px;-moz-border-radius:35px;border-radius:35px;}
.color-shape.big.round{-webkit-border-radius:75px;-moz-border-radius:75px;border-radius:75px;}
.color-shape.red{background:red;}
.color-shape.blue{background:blue;}
.color-shape.yellow{background:yellow;}
.color-shape.wide,.color-shape.big{width:150px;}
.color-shape.tall,.color-shape.big{height:150px;}
.color-shape a{display:block;height:100%;}
.color-shape a:hover{background:white;background:hsla( 0,0%,100%,0.5 );}
/**** Horizontal ****/
.horizontal #container{height:80%;}
#copy{max-width:640px;}
/**** Photo demo ****/
.photos .photo{width:320px;margin:5px;float:left;}
.photos .photo img{display:block;width:100%;}
#content{margin-left:210px;}
.demos #content{height:100%;}
/**** Docs ****/
.docs #content{max-width:640px;}
.docs #content a:hover{border-bottom:1px dotted;}
/**** Doc page nav ****/
#site-nav{width:200px;position:absolute;left:10px;top:0px;padding-top:20px;font-size:12px;}
#site-nav h1{font-size:24px;margin-bottom:0.5em;margin-top:0;font-weight:bold;font-family:'Helvetica Neue',Arial,sans-serif;}
#site-nav h2{font-size:17px;font-weight:normal;margin:0 0 0.3em;border-top:none;}
#site-nav h1 a{color:#4FB;}
#site-nav h1 a:hover{color:#4BF;}
#site-nav ul{list-style:none;margin:0 0 1.0em;font-weight:bold;}
#site-nav ul ul{margin-bottom:0;}
#site-nav ul a{display:block;border:none;padding:1px 5px;}
#site-nav ul .current a{background:hsla( 0,0%,0%,0.3 );color:#1BF;}
#site-nav ul a:hover,#site-nav ul .current a:hover{color:white;}
#site-nav ul .current .toc a{font-size:12px;padding-left:1.2em;font-weight:normal;}
/**** Doc content ****/
.docs #content h2{border-top:1px solid #333;padding-top:0.8em;margin-bottom:0.8em;}
.docs #content h2:target{padding:10px;background:white;color:#222;}
.docs #content h3{color:#FEC;background:hsla( 0,0%,75%,0.05 );padding:2px 0.5em;margin-bottom:0.5em;font-size:1.15em;}
.docs #content h4{margin-bottom:0.5em;font-size:14px;}
footer{font-size:12px;font-style:italic;border-top:1px solid #333;padding:0.8em 0;}
pre{padding:10px;}
pre,code{background:black;color:white;font-family:'Monaco',monospace,sans-serif;}
#content code{font-size:12px;}
#content pre{line-height:1.6em;}
h3#options{padding-bottom:0;}
.option-def dl dt,.option-def dl dd{float:left;padding:0 1.2em;;background:#161616;line-height:36px;height:36px;}
.option-def dl.header dt,.option-def dl.header dd{background:#444;}
.option-def dl .option-type{font-size:13px;color:#AAA;font-style:italic;}
.option-def dl dd{border-left:1px solid #222;}
/* Tagline */
.docs .tagline{font-size:22px;font-weight:300;}
/* as-is from MIT */
.docs .as-is{font-size:95%;}
/* Commercial license blurb */
.docs #commercial{background:white;padding:10px;font-size:14px;color:#1F1F1D;}
.docs #commercial a{font-weight:bold;}
/**** Pygments ****/
code .s1,code .s{color:#78BD55;}
/* string */
code .mi,/* integer */
code .cp,/* doctype */
code .kc{color:#5298D4;}
/*boolean*/
code .k{color:#E39B79;}
/* keyword */
code .kd,/* storage */
code .na{color:#A9D866;}
/* markup attribute */
code .p{color:#EDB;}
/* punctuation */
code .o{color:#F63;}
/* operator */
code .nb{color:#AA97AC;}
/* support */
/* comment */
code .c,code .c1{color:#666;font-style:italic;}
code .nt{color:#A0C8FC;}
/* Markup open tag */
code .nf{color:#9EA8B8;}
/* css id */
code .nc{color:#A78352;}
/* CSS class */
code .m{color:#DE8E50;}
/* CSS value */
code .nd{color:#9FAD7E;}
/* CSS pseudo selector */
/**** Super list ****/
/**** Sites using Isotope ****/
#sites h2{display:none;padding:0.4em;line-height:32px;margin-bottom:0.4em;-webkit-transition:background-color 0.8s;-moz-transition:background-color 0.8s;-o-transition:background-color 0.8s;transition:background-color 0.8s;}
#sites h2 img{display:inline-block;margin-right:0.4em;vertical-align:bottom;}
#sites h2.loading{background:white;color:#222;}
#sites h2.error{background:red;color:#222;}
#sites ul{margin:0;}
.super-list .example{list-style:none;float:left;width:230px;margin:5px;}
.super-list .example a,.super-list .example b,.super-list .example img{display:block;}
.super-list .example img{width:100%;}
.super-list .example a{background:#1F1E1D;}
.super-list .example a:hover{background:white;color:#111;}
.super-list .example b{font-weight:bold;line-height:1.3em;padding:3px;padding-top:8px;}
.super-list .link{float:left;position:relative;font-size:24px;line-height:1.2em;font-weight:300;margin:5px;}
.super-list .link{width:230px;height:110px;}
.super-list .link a{display:block;padding:10px;padding-left:65px;height:90px;background:#1F1E1D;color:#FE5;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;}
.super-list .link a:before{content:'➔';font-size:70px;position:absolute;top:30px;left:5px;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);}
.super-list .link.away a:before{top:25px;left:0px;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);}
.super-list .link a:hover{background:#E58;color:white;}
.super-list .feature .name{bottom:auto;top:140px;left:18px;font-size:20px;}
/**** BIG Graph ****/
.big-graph{background:white;height:600px;margin:20px auto;}
.big-graph .project{width:45px;height:45px;float:left;}
.big-graph .project .icon{pointer-events:none;width:31px;height:31px;background:white;margin-left:7px;-webkit-transition:-webkit-transform 0.25s;-moz-transition:-moz-transform 0.25s;-ms-transition:-ms-transform 0.25s;-o-transition:-o-transform 0.25s;transition:transform 0.25s;}
.big-graph .project:hover{z-index:5;}
.big-graph .project:hover .icon{-webkit-transform:scale(3);-moz-transform:scale(3);-ms-transform:scale(3);-o-transform:scale(3);transform:scale(3);}
.big-graph .project.commercial .icon{background:#6B6B6B;}
.big-graph .project.urbanism .icon{background:#00CF00;}
.big-graph .project.public-space .icon{background:#FF8D00;}
.big-graph .project.culture .icon{background:#D61919;}
.big-graph .project.body-culture .icon{background:#00ECFF;}
.big-graph .project.health .icon{background:#FF2251;}
.big-graph .project.education .icon{background:#00A700;}
.big-graph .project.housing .icon{background:#FF02FF;}
.big-graph .project.hotel .icon{background:#0000C3;}
.big-graph .project.media .icon{background:#292929;}
.big-graph .project p{line-height:14px;font-size:10.5px;color:black;margin-left:7px;}
/**** Infinite Scroll ****/
#infscr-loading{position:fixed;text-align:center;bottom:30px;left:42%;z-index:100;background:white;background:hsla( 0,0%,100%,0.9 );padding:20px;color:#222;font-size:15px;font-weight:bold;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;}
/* The Magnificent Clearfix:nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,.clearfix:after{content:"";display:table;}
.clearfix:after{clear:both;}
.clearfix{zoom:1;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
47.81 KB
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章