├── sass
├── border-1px
│ ├── _base.scss
│ ├── _mixin.scss
│ └── _media.scss
├── print.scss
├── ie.scss
└── scrollmenu.scss
├── fonts
├── icomoon.eot
├── icomoon.ttf
├── icomoon.woff
├── fontCss.css
└── icomoon.svg
├── .sass-cache
├── 9a7969496af1aec9a186c1b1762acda1b77db0b0
│ ├── print.scssc
│ ├── scrollmenu.scssc
│ ├── ie.scssc
│ └── screen.scssc
├── 3746710bfe7e0b2975954c3a0118ba047eb1860b
│ ├── _filter.scssc
│ ├── _images.scssc
│ ├── _animation.scssc
│ ├── _columns.scssc
│ ├── _flexbox.scssc
│ ├── _font-face.scssc
│ ├── _opacity.scssc
│ ├── _regions.scssc
│ ├── _transform.scssc
│ ├── _box-shadow.scssc
│ ├── _box-sizing.scssc
│ ├── _hyphenation.scssc
│ ├── _text-shadow.scssc
│ ├── _transition.scssc
│ ├── _border-radius.scssc
│ ├── _inline-block.scssc
│ ├── _user-interface.scssc
│ ├── _background-clip.scssc
│ ├── _background-size.scssc
│ ├── _background-origin.scssc
│ ├── _deprecated-support.scssc
│ └── _appearance.scssc
├── 595fac6b687c9031debfb4ea4c8b3511cc17aba3
│ └── _hacks.scssc
├── c97bce9918b87dbc9aadc31ef7192d7957d57e0a
│ ├── _media.scssc
│ ├── _mixin.scssc
│ └── _base.scssc
├── 8f94eb898a9783786c406a84806e4fc94c68aa1c
│ └── _ellipsis.scssc
├── b4dc5ef3282a087fe58bacd7d9b56433752b3ac9
│ ├── _support.scssc
│ ├── _reset.scssc
│ ├── _layout.scssc
│ └── _css3.scssc
├── f20dab5b7fb1216f35d8484ebb92bc8dca57139a
│ └── _utilities.scssc
├── 3aa8e0230493eb6fd1c3680539c42b9bb329e1c6
│ ├── _stretching.scssc
│ ├── _sticky-footer.scssc
│ └── _grid-background.scssc
├── 79db1df0af0471c2664c612e8a6fdc3832f23fae
│ └── _link-colors.scssc
└── 75fcaf1b4852ceb732871195e41567cc2a7d8997
│ └── C%058
│ └── Ruby22-x64
│ └── lib
│ └── ruby
│ └── gems
│ └── 2.2.0
│ └── gems
│ └── compass-core-1.0.3
│ └── stylesheets
│ └── compass
│ ├── _support.scssc
│ └── css3
│ ├── _images.scssc
│ └── _background-size.scssc
├── css
├── print.css
├── ie.css
├── scrollMenu.css
└── animate.css
├── config.rb
├── README.md
├── index.html
└── js
├── scrollmenu.js
└── bscroll.js
/sass/border-1px/_base.scss:
--------------------------------------------------------------------------------
1 | @import '_mixin.scss';
2 | @import '_media.scss';
--------------------------------------------------------------------------------
/fonts/icomoon.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/fonts/icomoon.eot
--------------------------------------------------------------------------------
/fonts/icomoon.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/fonts/icomoon.ttf
--------------------------------------------------------------------------------
/fonts/icomoon.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/fonts/icomoon.woff
--------------------------------------------------------------------------------
/.sass-cache/9a7969496af1aec9a186c1b1762acda1b77db0b0/print.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/9a7969496af1aec9a186c1b1762acda1b77db0b0/print.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_filter.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_filter.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_images.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_images.scssc
--------------------------------------------------------------------------------
/.sass-cache/595fac6b687c9031debfb4ea4c8b3511cc17aba3/_hacks.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/595fac6b687c9031debfb4ea4c8b3511cc17aba3/_hacks.scssc
--------------------------------------------------------------------------------
/.sass-cache/c97bce9918b87dbc9aadc31ef7192d7957d57e0a/_media.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/c97bce9918b87dbc9aadc31ef7192d7957d57e0a/_media.scssc
--------------------------------------------------------------------------------
/.sass-cache/c97bce9918b87dbc9aadc31ef7192d7957d57e0a/_mixin.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/c97bce9918b87dbc9aadc31ef7192d7957d57e0a/_mixin.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_animation.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_animation.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_columns.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_columns.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_flexbox.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_flexbox.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_font-face.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_font-face.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_opacity.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_opacity.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_regions.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_regions.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_transform.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_transform.scssc
--------------------------------------------------------------------------------
/.sass-cache/8f94eb898a9783786c406a84806e4fc94c68aa1c/_ellipsis.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/8f94eb898a9783786c406a84806e4fc94c68aa1c/_ellipsis.scssc
--------------------------------------------------------------------------------
/.sass-cache/9a7969496af1aec9a186c1b1762acda1b77db0b0/scrollmenu.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/9a7969496af1aec9a186c1b1762acda1b77db0b0/scrollmenu.scssc
--------------------------------------------------------------------------------
/.sass-cache/b4dc5ef3282a087fe58bacd7d9b56433752b3ac9/_support.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/b4dc5ef3282a087fe58bacd7d9b56433752b3ac9/_support.scssc
--------------------------------------------------------------------------------
/.sass-cache/f20dab5b7fb1216f35d8484ebb92bc8dca57139a/_utilities.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/f20dab5b7fb1216f35d8484ebb92bc8dca57139a/_utilities.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_box-shadow.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_box-shadow.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_box-sizing.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_box-sizing.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_hyphenation.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_hyphenation.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_text-shadow.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_text-shadow.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_transition.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_transition.scssc
--------------------------------------------------------------------------------
/.sass-cache/3aa8e0230493eb6fd1c3680539c42b9bb329e1c6/_stretching.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3aa8e0230493eb6fd1c3680539c42b9bb329e1c6/_stretching.scssc
--------------------------------------------------------------------------------
/.sass-cache/79db1df0af0471c2664c612e8a6fdc3832f23fae/_link-colors.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/79db1df0af0471c2664c612e8a6fdc3832f23fae/_link-colors.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_border-radius.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_border-radius.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_inline-block.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_inline-block.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_user-interface.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_user-interface.scssc
--------------------------------------------------------------------------------
/.sass-cache/3aa8e0230493eb6fd1c3680539c42b9bb329e1c6/_sticky-footer.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3aa8e0230493eb6fd1c3680539c42b9bb329e1c6/_sticky-footer.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_background-clip.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_background-clip.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_background-size.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_background-size.scssc
--------------------------------------------------------------------------------
/.sass-cache/3aa8e0230493eb6fd1c3680539c42b9bb329e1c6/_grid-background.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3aa8e0230493eb6fd1c3680539c42b9bb329e1c6/_grid-background.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_background-origin.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_background-origin.scssc
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_deprecated-support.scssc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IFmiss/scrollmenu/master/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_deprecated-support.scssc
--------------------------------------------------------------------------------
/css/print.css:
--------------------------------------------------------------------------------
1 | /* Welcome to Compass. Use this file to define print styles.
2 | * Import this file using the following HTML or equivalent:
3 | * */
4 |
--------------------------------------------------------------------------------
/sass/print.scss:
--------------------------------------------------------------------------------
1 | /* Welcome to Compass. Use this file to define print styles.
2 | * Import this file using the following HTML or equivalent:
3 | * */
4 |
--------------------------------------------------------------------------------
/css/ie.css:
--------------------------------------------------------------------------------
1 | /* Welcome to Compass. Use this file to write IE specific override styles.
2 | * Import this file using the following HTML or equivalent:
3 | * */
6 |
--------------------------------------------------------------------------------
/sass/ie.scss:
--------------------------------------------------------------------------------
1 | /* Welcome to Compass. Use this file to write IE specific override styles.
2 | * Import this file using the following HTML or equivalent:
3 | * */
6 |
--------------------------------------------------------------------------------
/sass/border-1px/_mixin.scss:
--------------------------------------------------------------------------------
1 | @mixin border-1px($color){
2 | position:relative;
3 | &:after{
4 | display: block;
5 | width: 100%;
6 | position:absolute;
7 | background: $color!important;
8 | left: 0;
9 | bottom: 0;
10 | border-top:1px solid $color!important;
11 | content: '';
12 | }
13 | }
14 |
15 | @mixin border-none(){
16 | &:after{
17 | display: none;
18 | }
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/sass/border-1px/_media.scss:
--------------------------------------------------------------------------------
1 | @media (-webkit-min-device-pixel-ratio:1.5),(min-device-pixel-ratio:1.5){
2 | .border-1px{
3 | &::after{
4 | @include scaleY(0.65);
5 | }
6 | }
7 | }
8 |
9 | @media (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2){
10 | .border-1px{
11 | &::after{
12 | @include scaleY(0.5);
13 | }
14 | }
15 | }
16 |
17 | @media (-webkit-min-device-pixel-ratio:2.5),(min-device-pixel-ratio:2.5){
18 | .border-1px{
19 | &::after{
20 | @include scaleY(0.4);
21 | }
22 | }
23 | }
24 |
25 | @media (-webkit-min-device-pixel-ratio:3),(min-device-pixel-ratio:3){
26 | .border-1px{
27 | &::after{
28 | @include scaleY(0.33);
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/.sass-cache/75fcaf1b4852ceb732871195e41567cc2a7d8997/C%058/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/_support.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | da39a3ee5e6b4b0d3255bfef95601890afd80709
3 | o:Sass::Tree::RootNode:@children[ :@filename0:
@options{ :@templateI" :ET:
4 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;i:@offseti:
@end_poso;;i;i:
5 | @fileI"o(NOT IMPORTED) C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/_support.scss;
6 | T:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
7 | @rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets;
8 | T:@real_rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets;
9 | T:@same_name_warningso:Set:
10 | @hash{
--------------------------------------------------------------------------------
/.sass-cache/75fcaf1b4852ceb732871195e41567cc2a7d8997/C%058/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_images.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | da39a3ee5e6b4b0d3255bfef95601890afd80709
3 | o:Sass::Tree::RootNode:@children[ :@filename0:
@options{ :@templateI" :ET:
4 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;i:@offseti:
@end_poso;;i;i:
5 | @fileI"s(NOT IMPORTED) C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_images.scss;
6 | T:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
7 | @rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets;
8 | T:@real_rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets;
9 | T:@same_name_warningso:Set:
10 | @hash{
--------------------------------------------------------------------------------
/.sass-cache/75fcaf1b4852ceb732871195e41567cc2a7d8997/C%058/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_background-size.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | da39a3ee5e6b4b0d3255bfef95601890afd80709
3 | o:Sass::Tree::RootNode:@children[ :@filename0:
@options{ :@templateI" :ET:
4 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;i:@offseti:
@end_poso;;i;i:
5 | @fileI"|(NOT IMPORTED) C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_background-size.scss;
6 | T:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
7 | @rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets;
8 | T:@real_rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets;
9 | T:@same_name_warningso:Set:
10 | @hash{
--------------------------------------------------------------------------------
/.sass-cache/c97bce9918b87dbc9aadc31ef7192d7957d57e0a/_base.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | db27df0caa08da1096b8e0cc9c49385e211609eb
3 | o:Sass::Tree::RootNode:@children[o:Sass::Tree::ImportNode
:@imported_filenameI"_mixin.scss:ET;[ :@filename0:
@options{ :@template0:
4 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;
i:@offseti:
@end_poso;;
i;i:
5 | @fileI"7E:/myProject/scrollmenu/sass/border-1px/_base.scss:
encoding"GBK:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
6 | @rootI"E:/myProject/scrollmenu; T:@real_rootI"E:/myProject/scrollmenu; T:@same_name_warningso:Set:
7 | @hash{ :@imported_file0o;
;I"_media.scss; T;[ ;
8 | 0;@
9 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0;
10 | 0;@
11 | ;I"2@import '_mixin.scss';
12 | @import '_media.scss';; T:@has_childrenT;
i;o; ;o;;
i;i;o;;
i;i;@;@
--------------------------------------------------------------------------------
/config.rb:
--------------------------------------------------------------------------------
1 | require 'compass/import-once/activate'
2 | # Require any additional compass plugins here.
3 |
4 | # Set this to the root of your project when deployed:
5 | http_path = "/"
6 | css_dir = "css"
7 | sass_dir = "sass"
8 | images_dir = "images"
9 | javascripts_dir = "js"
10 |
11 | # You can select your preferred output style here (can be overridden via the command line):
12 | # output_style = :expanded or :nested or :compact or :compressed
13 |
14 | # To enable relative paths to assets via compass helper functions. Uncomment:
15 | # relative_assets = true
16 |
17 | # To disable debugging comments that display the original location of your selectors. Uncomment:
18 | # line_comments = false
19 |
20 |
21 | # If you prefer the indented syntax, you might want to regenerate this
22 | # project again passing --syntax sass, or you can uncomment this:
23 | # preferred_syntax = :sass
24 | # and then run:
25 | # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
26 |
--------------------------------------------------------------------------------
/.sass-cache/b4dc5ef3282a087fe58bacd7d9b56433752b3ac9/_reset.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | df78759f0fe6b88a633d20d26581ca4cdb829111
3 | o:Sass::Tree::RootNode:@children[o:Sass::Tree::ImportNode
:@imported_filenameI"reset/utilities:ET;[ :@filename0:
@options{ :@template0:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position:
4 | @linei:@offseti:
@end_poso;;i;i:
5 | @fileI"^C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/_reset.scss; T:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
6 | @rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@real_rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@same_name_warningso:Set:
7 | @hash{ ;i:@imported_file0o:Sass::Tree::MixinNode:
8 | @nameI"global-reset; T:
9 | @args[ :@keywords{ :@splat0:@kwarg_splat0;[ ;
10 | 0;@
11 | ;i;
o; ;o;;i;i;o;;i;i;@;@;
12 | 0;@
13 | ;I"8@import "reset/utilities";
14 |
15 | @include global-reset;
16 | ; T:@has_childrenT;i;
o; ;o;;i;i;o;;i;i;@;@
--------------------------------------------------------------------------------
/.sass-cache/b4dc5ef3282a087fe58bacd7d9b56433752b3ac9/_layout.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | bbe8b1b9b6592e6ce6a7294fd0249c75049d3024
3 | o:Sass::Tree::RootNode:@children[o:Sass::Tree::ImportNode
:@imported_filenameI"layout/grid-background:ET;[ :@filename0:
@options{ :@template0:
4 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;
i:@offseti:
@end_poso;;
i;i&:
5 | @fileI"_C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/_layout.scss; T:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
6 | @rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@real_rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@same_name_warningso:Set:
7 | @hash{ :@imported_file0o;
;I"layout/sticky-footer; T;[ ;
8 | 0;@
9 | ;0;
i;o; ;o;;
i;i;o;;
i;i$;@;@;0o;
;I"layout/stretching; T;[ ;
10 | 0;@
11 | ;0;
i;o; ;o;;
i;i;o;;
i;i!;@;@;0;
12 | 0;@
13 | ;I"d@import "layout/grid-background";
14 | @import "layout/sticky-footer";
15 | @import "layout/stretching";
16 | ; T:@has_childrenT;
i;o; ;o;;
i;i;o;;
i;i;@;@
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 预览地址
2 | http://daiwei.org/components/scrollmenu/
3 |
4 | # scrollmenu
5 | 这是关于弹出关闭可滚动的菜单效果 兼容pc、移动端
6 |
7 | * height: //菜单栏的高度
8 | * zIndex: //层级
9 | * background: //背景色
10 | * type: //cross or '' 横向列表 和 正常显示的效果 具体见下方链接
11 | * animateIn: //菜单进入的效果 可使用animate.css
12 | * animateOut: //菜单关闭的效果
13 | * duration: //动画执行时间
14 | * hasLineBorder: //是否显示一像素边框分割
15 | * bscroll: //是否使用bScroll的 滚动方式
16 | * showRightIcon: //横向列表下是否显示右侧图标
17 | * iconSIze: //图标大小
18 | * source: //列表的信息
19 | * title: //source 下的子属性 菜单名称
20 | * hasHref: //source 下的子属性 是否有链接
21 | * href: //source 下的子属性 链接地址
22 | * font_imgClass: //source 下的子属性 图标的class名称
23 | * hrefType: //source 下的子属性 //_self , _blank, _parent, _top 打开的类型
24 | * rightFont_imgClass: //source 下的子属性 //横向列表状态下 右侧的图标信息
25 | * click:function(ret){} //列表被点击时候的方法 ret.ele 点击的元素 ret.hasHref 是否有链接 ret.index 点击的索引 ret.title 文本内容 ret.icon_class 图标的class名称
26 |
27 | * ### 注意:'-hastrans'是我在animate.css的基础上加的,目的是当元素为绝对定位又想用translate居中时候,修改translate的值无效,故做了一些修改,之前的class也可以正常使用
28 |
29 |
--------------------------------------------------------------------------------
/.sass-cache/9a7969496af1aec9a186c1b1762acda1b77db0b0/ie.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | 55d03cbe8dc4482082815585822d80503557fdcb
3 | o:Sass::Tree::RootNode:@children[o:Sass::Tree::CommentNode:@value[I"/* Welcome to Compass. Use this file to write IE specific override styles.
4 | * Import this file using the following HTML or equivalent:
5 | * */:ET:
8 | @type:normal;[ :@filename0:
@options{ :
9 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;i:@offseti:
@end_poso;;i
10 | ;i:
11 | @fileI")E:/myProject/scrollmenu/sass/ie.scss:
encoding"GBK:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
12 | @rootI"E:/myProject/scrollmenu; T:@real_rootI"E:/myProject/scrollmenu; T:@same_name_warningso:Set:
13 | @hash{ ;0;
@:@templateI"/* Welcome to Compass. Use this file to write IE specific override styles.
14 | * Import this file using the following HTML or equivalent:
15 | * */
18 | ; T:@has_childrenT;i;o; ;o;;i;i;o;;i;i;@;@
--------------------------------------------------------------------------------
/.sass-cache/9a7969496af1aec9a186c1b1762acda1b77db0b0/screen.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | e24c39d4800ce9f9b6b50e6a9d2d8c3fce9d548f
3 | o:Sass::Tree::RootNode:@children[o:Sass::Tree::CommentNode:@value[I"/* Welcome to Compass.
4 | * In this file you should write your main styles. (or centralize your imports)
5 | * Import this file using the following HTML or equivalent:
6 | * */:ET:
7 | @type:normal;[ :@filename0:
@options{ :
8 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;i:@offseti:
@end_poso;;i ;io:
9 | @fileI"-E:/myProject/scrollmenu/sass/screen.scss:
encoding"GBK:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
10 | @rootI"E:/myProject/scrollmenu; T:@real_rootI"E:/myProject/scrollmenu; T:@same_name_warningso:Set:
11 | @hash{ o:Sass::Tree::ImportNode
:@imported_filenameI"compass/reset; T;[ ;0;
@:@template0;o; ;o;;i;i;o;;i;i;@;@;i:@imported_file0;0;
@;!I"'/* Welcome to Compass.
12 | * In this file you should write your main styles. (or centralize your imports)
13 | * Import this file using the following HTML or equivalent:
14 | * */
15 |
16 | @import "compass/reset";
17 | ; T:@has_childrenT;i;o; ;o;;i;i;o;;i;i;@;@
--------------------------------------------------------------------------------
/fonts/fontCss.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'icomoon';
3 | src: url('icomoon.eot?dt30lq');
4 | src: url('icomoon.eot?dt30lq#iefix') format('embedded-opentype'),
5 | url('icomoon.ttf?dt30lq') format('truetype'),
6 | url('icomoon.woff?dt30lq') format('woff'),
7 | url('icomoon.svg?dt30lq#icomoon') format('svg');
8 | font-weight: normal;
9 | font-style: normal;
10 | }
11 |
12 | [class^="dw-icon-"], [class*=" dw-icon-"] {
13 | /* use !important to prevent issues with browser extensions that change fonts */
14 | font-family: 'icomoon' !important;
15 | speak: none;
16 | font-style: normal;
17 | font-weight: normal;
18 | font-variant: normal;
19 | text-transform: none;
20 | line-height: 1;
21 |
22 | /* Better Font Rendering =========== */
23 | -webkit-font-smoothing: antialiased;
24 | -moz-osx-font-smoothing: grayscale;
25 | }
26 |
27 | .dw-icon-add:before {
28 | content: "\e900";
29 | }
30 | .dw-icon-android:before {
31 | content: "\e901";
32 | }
33 | .dw-icon-apple:before {
34 | content: "\e902";
35 | }
36 | .dw-icon-close:before {
37 | content: "\e903";
38 | }
39 | .dw-icon-down:before {
40 | content: "\e904";
41 | }
42 | .dw-icon-erweicode:before {
43 | content: "\e905";
44 | }
45 | .dw-icon-left:before {
46 | content: "\e906";
47 | }
48 | .dw-icon-like:before {
49 | content: "\e907";
50 | }
51 | .dw-icon-list:before {
52 | content: "\e908";
53 | }
54 | .dw-icon-money:before {
55 | content: "\e909";
56 | }
57 | .dw-icon-music:before {
58 | content: "\e90a";
59 | }
60 | .dw-icon-next:before {
61 | content: "\e90b";
62 | }
63 | .dw-icon-novoice:before {
64 | content: "\e90c";
65 | }
66 | .dw-icon-off:before {
67 | content: "\e90d";
68 | }
69 | .dw-icon-password:before {
70 | content: "\e90e";
71 | }
72 | .dw-icon-pause:before {
73 | content: "\e90f";
74 | }
75 | .dw-icon-play:before {
76 | content: "\e910";
77 | }
78 | .dw-icon-prev:before {
79 | content: "\e911";
80 | }
81 | .dw-icon-qq:before {
82 | content: "\e912";
83 | }
84 | .dw-icon-reduce:before {
85 | content: "\e913";
86 | }
87 | .dw-icon-right:before {
88 | content: "\e914";
89 | }
90 | .dw-icon-search:before {
91 | content: "\e915";
92 | }
93 | .dw-icon-share:before {
94 | content: "\e916";
95 | }
96 | .dw-icon-tag:before {
97 | content: "\e917";
98 | }
99 | .dw-icon-up:before {
100 | content: "\e918";
101 | }
102 | .dw-icon-user:before {
103 | content: "\e919";
104 | }
105 | .dw-icon-voice:before {
106 | content: "\e91a";
107 | }
108 | .dw-icon-wechat:before {
109 | content: "\e91b";
110 | }
111 | .dw-icon-weibo:before {
112 | content: "\e91c";
113 | }
114 | .dw-icon-windows:before {
115 | content: "\e91d";
116 | }
117 | .dw-icon-zan:before {
118 | content: "\e91e";
119 | }
120 | .dw-icon-zan-empty:before {
121 | content: "\e91f";
122 | }
123 |
124 |
--------------------------------------------------------------------------------
/.sass-cache/b4dc5ef3282a087fe58bacd7d9b56433752b3ac9/_css3.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | ff2e5c1b784cd29f2321d28a68782dc7c9611f46
3 | o:Sass::Tree::RootNode:@children[o:Sass::Tree::ImportNode
:@imported_filenameI"css3/border-radius:ET;[ :@filename0:
@options{ :@template0:
4 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;
i:@offseti:
@end_poso;;
i;i":
5 | @fileI"]C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/_css3.scss; T:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
6 | @rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@real_rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@same_name_warningso:Set:
7 | @hash{ :@imported_file0o;
;I"css3/inline-block; T;[ ;
8 | 0;@
9 | ;0;
i;o; ;o;;
i;i;o;;
i;i!;@;@;0o;
;I"css3/opacity; T;[ ;
10 | 0;@
11 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/box-shadow; T;[ ;
12 | 0;@
13 | ;0;
i ;o; ;o;;
i ;i;o;;
i ;i;@;@;0o;
;I"css3/text-shadow; T;[ ;
14 | 0;@
15 | ;0;
i
16 | ;o; ;o;;
i
17 | ;i;o;;
i
18 | ;i ;@;@;0o;
;I"css3/columns; T;[ ;
19 | 0;@
20 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/box-sizing; T;[ ;
21 | 0;@
22 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/flexbox; T;[ ;
23 | 0;@
24 | ;0;
i
;o; ;o;;
i
;i;o;;
i
;i;@;@;0o;
;I"css3/images; T;[ ;
25 | 0;@
26 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/background-clip; T;[ ;
27 | 0;@
28 | ;0;
i;o; ;o;;
i;i;o;;
i;i$;@;@;0o;
;I"css3/background-origin; T;[ ;
29 | 0;@
30 | ;0;
i;o; ;o;;
i;i;o;;
i;i&;@;@;0o;
;I"css3/background-size; T;[ ;
31 | 0;@
32 | ;0;
i;o; ;o;;
i;i;o;;
i;i$;@;@;0o;
;I"css3/font-face; T;[ ;
33 | 0;@
34 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/transform; T;[ ;
35 | 0;@
36 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/transition; T;[ ;
37 | 0;@
38 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/appearance; T;[ ;
39 | 0;@
40 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/animation; T;[ ;
41 | 0;@
42 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/regions; T;[ ;
43 | 0;@
44 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/hyphenation; T;[ ;
45 | 0;@
46 | ;0;
i;o; ;o;;
i;i;o;;
i;i ;@;@;0o;
;I"css3/filter; T;[ ;
47 | 0;@
48 | ;0;
i;o; ;o;;
i;i;o;;
i;i;@;@;0o;
;I"css3/user-interface; T;[ ;
49 | 0;@
50 | ;0;
i;o; ;o;;
i;i;o;;
i;i#;@;@;0;
51 | 0;@
52 | ;I"<@import "css3/border-radius";
53 | @import "css3/inline-block";
54 | @import "css3/opacity";
55 | @import "css3/box-shadow";
56 | @import "css3/text-shadow";
57 | @import "css3/columns";
58 | @import "css3/box-sizing";
59 | @import "css3/flexbox";
60 | @import "css3/images";
61 | @import "css3/background-clip";
62 | @import "css3/background-origin";
63 | @import "css3/background-size";
64 | @import "css3/font-face";
65 | @import "css3/transform";
66 | @import "css3/transition";
67 | @import "css3/appearance";
68 | @import "css3/animation";
69 | @import "css3/regions";
70 | @import "css3/hyphenation";
71 | @import "css3/filter";
72 | @import "css3/user-interface";
73 | ; T:@has_childrenT;
i;o; ;o;;
i;i;o;;
i;i;@;@
--------------------------------------------------------------------------------
/.sass-cache/3746710bfe7e0b2975954c3a0118ba047eb1860b/_appearance.scssc:
--------------------------------------------------------------------------------
1 | 3.4.22 (Selective Steve)
2 | 8c228e867e069d1b52ae586e30be356946cddfdf
3 | o:Sass::Tree::RootNode:@children[ o:Sass::Tree::CommentNode:@value[I"/* Appearance */:ET:
4 | @type:silent;[ :@filename0:
@options{ :
5 | @linei:@source_rangeo:Sass::Source::Range :@start_poso:Sass::Source::Position;i:@offseti:
@end_poso;;i;i:
6 | @fileI"hC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_appearance.scss; T:@importere:"Compass::ImportOnce::Importero: Sass::Importers::Filesystem:
7 | @rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@real_rootI"JC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets; T:@same_name_warningso:Set:
8 | @hash{ o:Sass::Tree::ImportNode
:@imported_filenameI"compass/support; T;[ ;0;
@:@template0;i;o; ;o;;i;i;o;;i;i;@;@:@imported_file0o;;[I"6/* Change the appearance for Mozilla, Webkit and possibly the future.
9 | * The appearance property is currently not present in any newer CSS specification.
10 | *
11 | * There is no official list of accepted values, but you might check these source:
12 | *
13 | * * [Mozilla](https://developer.mozilla.org/en/CSS/-moz-appearance)
14 | * * [Webkit](http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365)
15 | * (search for 'appearance' within the page) */; T;
16 | ;;[ ;0;
@;i ;o; ;o;;i ;i;o;;i;i6;@;@o:Sass::Tree::MixinDefNode:
17 | @nameI"appearance; T:
18 | @args[[o:!Sass::Script::Tree::Variable;#I"appearance; T:@underscored_nameI"appearance; T:@css_variable_warning0;i;o; ;o;;i;i;o;;i;i#;@;@;@;
@0:@splat0;[ o;;[I"7/* There is no caniuse tracking for appearance. */; T;
19 | ;;[ ;0;
@;i;o; ;o;;i;i;o;;i;i7;@;@o:Sass::Tree::VariableNode;#I"appearance; T:
20 | @expro: Sass::Script::Tree::Funcall;#I"unquote; T;$[o;%;#I"appearance; T;&I"appearance; T;'0;i;o; ;o;;i;i;o;;i;i(;@;@;@;
@:@keywordso:Sass::Util::NormalizedMap:@key_strings{ : @map{ ;(0:@kwarg_splat0;'0;i;o; ;o;;i;i;o;;i;i);@;@;@;
@:
@guarded0:@global0;[ ;0;
@;i;o; ;o;;i;i ;o;;i;i);@;@o:Sass::Tree::MixinNode;#I"with-prefix; T;$[o: Sass::Script::Tree::Literal
21 | ;o: Sass::Script::Value::String ;I" -moz; T;
@;
22 | :identifier:"@deprecated_interp_equivalent0;i;o; ;o;;i;i;o;;i;i!;@;@;'0;@;,o;-;.{ ;/{ ;(0;00;[o:Sass::Tree::PropNode;#[I"-moz-appearance; T;o;%;#I"appearance; T;&I"appearance; T;'0;i;o; ;o;;i;i<;o;;i;iG;@;@;@;
@:
23 | @tabsi :@prop_syntax:new;[ ;0;
@;i;o; ;o;;i;i+;o;;i;iG;@;@:@name_source_rangeo; ;@a;o;;i;i:;@;@:@value_source_rangeo; ;o;;i;i<;@b;@;@;0;
@;i;o; ;o;;i;i;o;;i;i&;@;@:@has_childrenTo;3;#I"with-prefix; T;$[o;4
24 | ;o;5 ;I"-webkit; T;
@;
25 | ;6;70;i;o; ;o;;i;i;o;;i;i$;@;@;'0;@;,o;-;.{ ;/{ ;(0;00;[o;8;#[I"-webkit-appearance; T;o;%;#I"appearance; T;&I"appearance; T;'0;i;o; ;o;;i;i<;o;;i;iG;@;@;@;
@;9i ;:;;;[ ;0;
@;i;o; ;o;;i;i(;o;;i;iG;@;@;T;0;
@;i;o; ;o;;i;i;o;;i;i%;@;@;>T;0;
@; I"b// Appearance
26 | @import "compass/support";
27 |
28 | // Change the appearance for Mozilla, Webkit and possibly the future.
29 | // The appearance property is currently not present in any newer CSS specification.
30 | //
31 | // There is no official list of accepted values, but you might check these source:
32 | //
33 | // * [Mozilla](https://developer.mozilla.org/en/CSS/-moz-appearance)
34 | // * [Webkit](http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365)
35 | // (search for 'appearance' within the page)
36 | @mixin appearance($appearance) {
37 | // There is no caniuse tracking for appearance.
38 | $appearance: unquote($appearance);
39 | @include with-prefix(-moz) { -moz-appearance: $appearance; }
40 | @include with-prefix(-webkit) { -webkit-appearance: $appearance; }
41 | }
42 | ; T;>T;i;o; ;o;;i;i;o;;i;i;@;@
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 滚动菜单兼容PC 移动端
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
横向滚动菜单
16 |
17 |
点击打开选择滚动菜单
18 |
19 |
bscroll的滚动效果
20 |
21 |
没有分割线
22 |
23 |
其他进入效果
24 |
25 |
无动画效果
26 |
27 |
28 |
29 |
30 |
31 |
32 |
163 |
--------------------------------------------------------------------------------
/sass/scrollmenu.scss:
--------------------------------------------------------------------------------
1 | /* Welcome to Compass.
2 | * In this file you should write your main styles. (or centralize your imports)
3 | * Import this file using the following HTML or equivalent:
4 | * */
5 |
6 | @charset "utf-8";
7 | @import "compass/reset";
8 | @import "compass/css3";
9 | @import "compass/layout";
10 | @import "compass/typography/text/ellipsis";
11 | @import "compass/typography/links/link-colors";
12 | @import "border-1px/_base.scss"; //一像素
13 |
14 | .cpt-dw-mask{
15 | position: fixed;
16 | width:100%;
17 | height:100%;
18 | top:0;
19 | left:0;
20 | bottom:0;
21 | right:0;
22 | @include translate3d(0,0,0);
23 | }
24 |
25 | .cpt-selectScrollMenu{
26 | -webkit-overflow-scrolling: touch;
27 | -webkit-tap-highlight-color: transparent;
28 | @include user-select(none);
29 | width: 100%;
30 | background: #fff;
31 | position: fixed;
32 | z-index: 2000;
33 | overflow:hidden;
34 | height: 300px;
35 | bottom: 0;
36 | .menuContent{
37 | padding: 20px;
38 | @include display-flex;
39 | @include justify-content(center);
40 | @include flex-direction(column);
41 |
42 | &.cross{
43 | padding:0;
44 |
45 | ul{
46 | position: relative;
47 | width: 100%;
48 | display: table;
49 | padding: 0;
50 | margin: 0;
51 |
52 | li{
53 | width: 100%;
54 | @include flex-direction(row);
55 | padding:10px 10px;
56 | // border-bottom:1px solid red;
57 |
58 | i{
59 | margin-bottom: 0;
60 | font-size: 24px;
61 | margin: 0;
62 | float: left;
63 | &.cpt-rightIcon{
64 | flex: 0 0 20px;
65 | color: #ccc;
66 | float: right;
67 | margin-top: 5px;
68 | }
69 | }
70 |
71 | p{
72 | width: 80%;
73 | text-indent: 20px;
74 | margin: 0;
75 | padding:2px 0;
76 | font-size: 16px;
77 | text-align: left;
78 | float: left;
79 | line-height: 1.5;
80 | }
81 |
82 | a{
83 | @include flex-direction(row);
84 | @include justify-content(flex-start);
85 | background-color: transparent;
86 | &:active{
87 | background-color: transparent;
88 | }
89 |
90 | i{
91 | margin-bottom: 0;
92 | font-size: 24px;
93 | margin: 0;
94 | float: left;
95 | &.cpt-rightIcon{
96 | flex: 0 0 20px;
97 | color: #ccc;
98 | float: right;
99 | margin-top: 5px;
100 | }
101 | }
102 |
103 | p{
104 | width: 80%;
105 | text-indent: 20px;
106 | padding:2px 0;
107 | font-size: 16px;
108 | text-align: left;
109 | float: left;
110 | line-height: 1.5;
111 | }
112 | }
113 |
114 | &.border-1px{
115 | @include border-1px(rgba(17,27,37,0.1));
116 | }
117 | }
118 | }
119 | }
120 |
121 | ul{
122 | position: relative;
123 | width: 100%;
124 | display: table;
125 | margin: 0;
126 | padding:0;
127 |
128 | li{
129 | width: 25%;
130 | float: left;
131 | @include display-flex;
132 | @include justify-content(flex-start);
133 | @include flex-direction(column);
134 | @include align-items(center);
135 | position:relative;
136 | padding:20px;
137 | cursor: pointer;
138 |
139 | &:active{
140 | background:#eee;
141 | }
142 |
143 | a{
144 | width: 100%;
145 | height:inherit;
146 | @include display-flex;
147 | @include justify-content(center);
148 | @include flex-direction(column);
149 | @include align-items(center);
150 | text-decoration: none;
151 | background-color: transparent;
152 | position:relative;
153 | &:active{
154 | background-color: transparent;
155 | }
156 |
157 | i{
158 | display: block;
159 | margin: 0 auto;
160 | color: #878787;
161 | margin-bottom: 10px;
162 | font-size: 32px;
163 | flex: 0 0 30px;
164 | }
165 |
166 | p{
167 | white-space: nowrap;
168 | overflow: hidden;
169 | -ms-text-overflow: ellipsis;
170 | -o-text-overflow: ellipsis;
171 | text-overflow: ellipsis;
172 | color: #999;
173 | font-size: 14px;
174 | flex: 1 1 auto;
175 | text-align: center;
176 | margin: 0;
177 | }
178 | }
179 |
180 | i{
181 | display: block;
182 | margin: 0 auto;
183 | font-size: 32px;
184 | color: #878787;
185 | margin-bottom: 10px;
186 | flex: 0 0 30px;
187 | }
188 |
189 | p{
190 | white-space: nowrap;
191 | overflow: hidden;
192 | -ms-text-overflow: ellipsis;
193 | -o-text-overflow: ellipsis;
194 | text-overflow: ellipsis;
195 | color: #999;
196 | font-size: 14px;
197 | flex: 1 1 auto;
198 | text-align: center;
199 | }
200 | }
201 | }
202 | }
203 | }
204 |
205 |
206 | //通用样式
207 | // 这里将是所有的颜色列表信息
208 | $dw-color-default:#ffffff;
209 | $dw-color-default-hover:#e6e6e6;
210 |
211 | $dw-color-success:#21B384;
212 | $dw-color-success-hover:#28A47C;
213 |
214 | $dw-color-primary:#4D96DF;
215 | $dw-color-primary-hover:#4684C3;
216 |
217 | $dw-color-warning:#FFBD7A;
218 | $dw-color-warning-hover:#F0AF6D;
219 |
220 | $dw-color-danger:#D9534F;
221 | $dw-color-danger-hover:#C74743;
222 |
223 | $dw-color-skyblue:#99CCFF;
224 | $dw-color-skyblue-hover:#8EB5DB;
225 |
226 | $dw-color-powderblue:#99CCCC;
227 | $dw-color-powderblue-hover:#85BDBD;
228 |
229 | $dw-color-springgreen:#66CC99;
230 | $dw-color-springgreen-hover:#5AB588;
231 |
232 | $dw-color-lightpurple:#CCCCFF;
233 | $dw-color-lightpurple-hover:#B8B8E9;
234 |
235 | $dw-color-lightgrey:#CCCCCC;
236 | $dw-color-lightgrey-hover:#C5C5C5;
237 |
238 | $dw-color-deepred:#AA314D;
239 | $dw-color-deepred-hover:#923248;
240 |
241 | body,html{
242 | margin:0;
243 | padding:0;
244 | @include box-sizing(border-box);
245 | }
246 |
247 | *{
248 | @include box-sizing(border-box);
249 | }
250 |
251 | //关闭谷歌浏览器输入框黑色
252 | input:-webkit-autofill,
253 | textarea:-webkit-autofill,
254 | select:-webkit-autofill {
255 | -webkit-box-shadow: 0 0 0 1000px white inset!important;
256 | }
257 |
258 | // input:-webkit-autofill {
259 | // -webkit-box-shadow: 0 0 0px 1000px white inset !important;
260 | // }
261 |
262 | input[type=text]:focus, input[type=password]:focus, textarea:focus {
263 | -webkit-box-shadow: 0 0 0 1000px white inset;
264 | }
265 |
266 |
267 | .txt-color-666{
268 | color:#666 !important;
269 | }
270 |
271 | .txt-textOneRow{
272 | text-overflow: ellipsis;
273 | overflow:hidden;
274 | white-space:nowrap;
275 | }
276 |
277 | .txt-textTwoRow{
278 | // height: 40
279 | // line-height: 20 几行就是几的倍数
280 | overflow: hidden;
281 | text-overflow: ellipsis;
282 | display: -webkit-box;
283 | -webkit-line-clamp: 2;
284 | -webkit-box-orient: vertical;
285 | }
--------------------------------------------------------------------------------
/css/scrollMenu.css:
--------------------------------------------------------------------------------
1 | /* Welcome to Compass.
2 | * In this file you should write your main styles. (or centralize your imports)
3 | * Import this file using the following HTML or equivalent:
4 | * */
5 | /* line 5, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
6 | html, body, div, span, applet, object, iframe,
7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8 | a, abbr, acronym, address, big, cite, code,
9 | del, dfn, em, img, ins, kbd, q, s, samp,
10 | small, strike, strong, sub, sup, tt, var,
11 | b, u, i, center,
12 | dl, dt, dd, ol, ul, li,
13 | fieldset, form, label, legend,
14 | table, caption, tbody, tfoot, thead, tr, th, td,
15 | article, aside, canvas, details, embed,
16 | figure, figcaption, footer, header, hgroup,
17 | menu, nav, output, ruby, section, summary,
18 | time, mark, audio, video {
19 | margin: 0;
20 | padding: 0;
21 | border: 0;
22 | font: inherit;
23 | font-size: 100%;
24 | vertical-align: baseline;
25 | }
26 |
27 | /* line 22, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
28 | html {
29 | line-height: 1;
30 | }
31 |
32 | /* line 24, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
33 | ol, ul {
34 | list-style: none;
35 | }
36 |
37 | /* line 26, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
38 | table {
39 | border-collapse: collapse;
40 | border-spacing: 0;
41 | }
42 |
43 | /* line 28, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
44 | caption, th, td {
45 | text-align: left;
46 | font-weight: normal;
47 | vertical-align: middle;
48 | }
49 |
50 | /* line 30, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
51 | q, blockquote {
52 | quotes: none;
53 | }
54 | /* line 103, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
55 | q:before, q:after, blockquote:before, blockquote:after {
56 | content: "";
57 | content: none;
58 | }
59 |
60 | /* line 32, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
61 | a img {
62 | border: none;
63 | }
64 |
65 | /* line 116, C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
66 | article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
67 | display: block;
68 | }
69 |
70 | @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
71 | /* line 3, ../sass/border-1px/_media.scss */
72 | .border-1px::after {
73 | -moz-transform: scaleY(0.65);
74 | -ms-transform: scaleY(0.65);
75 | -webkit-transform: scaleY(0.65);
76 | transform: scaleY(0.65);
77 | }
78 | }
79 | @media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
80 | /* line 11, ../sass/border-1px/_media.scss */
81 | .border-1px::after {
82 | -moz-transform: scaleY(0.5);
83 | -ms-transform: scaleY(0.5);
84 | -webkit-transform: scaleY(0.5);
85 | transform: scaleY(0.5);
86 | }
87 | }
88 | @media (-webkit-min-device-pixel-ratio: 2.5), (min-device-pixel-ratio: 2.5) {
89 | /* line 19, ../sass/border-1px/_media.scss */
90 | .border-1px::after {
91 | -moz-transform: scaleY(0.4);
92 | -ms-transform: scaleY(0.4);
93 | -webkit-transform: scaleY(0.4);
94 | transform: scaleY(0.4);
95 | }
96 | }
97 | @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
98 | /* line 27, ../sass/border-1px/_media.scss */
99 | .border-1px::after {
100 | -moz-transform: scaleY(0.33);
101 | -ms-transform: scaleY(0.33);
102 | -webkit-transform: scaleY(0.33);
103 | transform: scaleY(0.33);
104 | }
105 | }
106 | /* line 14, ../sass/scrollmenu.scss */
107 | .cpt-dw-mask {
108 | position: fixed;
109 | width: 100%;
110 | height: 100%;
111 | top: 0;
112 | left: 0;
113 | bottom: 0;
114 | right: 0;
115 | -moz-transform: translate3d(0, 0, 0);
116 | -webkit-transform: translate3d(0, 0, 0);
117 | transform: translate3d(0, 0, 0);
118 | }
119 |
120 | /* line 25, ../sass/scrollmenu.scss */
121 | .cpt-selectScrollMenu {
122 | -webkit-overflow-scrolling: touch;
123 | -webkit-tap-highlight-color: transparent;
124 | -moz-user-select: -moz-none;
125 | -ms-user-select: none;
126 | -webkit-user-select: none;
127 | user-select: none;
128 | width: 100%;
129 | background: #fff;
130 | position: fixed;
131 | z-index: 2000;
132 | overflow: hidden;
133 | height: 300px;
134 | bottom: 0;
135 | }
136 | /* line 36, ../sass/scrollmenu.scss */
137 | .cpt-selectScrollMenu .menuContent {
138 | padding: 20px;
139 | display: -webkit-flex;
140 | display: flex;
141 | -webkit-justify-content: center;
142 | justify-content: center;
143 | -webkit-flex-direction: column;
144 | flex-direction: column;
145 | }
146 | /* line 42, ../sass/scrollmenu.scss */
147 | .cpt-selectScrollMenu .menuContent.cross {
148 | padding: 0;
149 | }
150 | /* line 45, ../sass/scrollmenu.scss */
151 | .cpt-selectScrollMenu .menuContent.cross ul {
152 | position: relative;
153 | width: 100%;
154 | display: table;
155 | padding: 0;
156 | margin: 0;
157 | }
158 | /* line 52, ../sass/scrollmenu.scss */
159 | .cpt-selectScrollMenu .menuContent.cross ul li {
160 | width: 100%;
161 | -webkit-flex-direction: row;
162 | flex-direction: row;
163 | padding: 10px 10px;
164 | }
165 | /* line 58, ../sass/scrollmenu.scss */
166 | .cpt-selectScrollMenu .menuContent.cross ul li i {
167 | margin-bottom: 0;
168 | font-size: 24px;
169 | margin: 0;
170 | float: left;
171 | }
172 | /* line 63, ../sass/scrollmenu.scss */
173 | .cpt-selectScrollMenu .menuContent.cross ul li i.cpt-rightIcon {
174 | flex: 0 0 20px;
175 | color: #ccc;
176 | float: right;
177 | margin-top: 5px;
178 | }
179 | /* line 71, ../sass/scrollmenu.scss */
180 | .cpt-selectScrollMenu .menuContent.cross ul li p {
181 | width: 80%;
182 | text-indent: 20px;
183 | margin: 0;
184 | padding: 2px 0;
185 | font-size: 16px;
186 | text-align: left;
187 | float: left;
188 | line-height: 1.5;
189 | }
190 | /* line 82, ../sass/scrollmenu.scss */
191 | .cpt-selectScrollMenu .menuContent.cross ul li a {
192 | -webkit-flex-direction: row;
193 | flex-direction: row;
194 | -webkit-justify-content: flex-start;
195 | justify-content: flex-start;
196 | background-color: transparent;
197 | }
198 | /* line 86, ../sass/scrollmenu.scss */
199 | .cpt-selectScrollMenu .menuContent.cross ul li a:active {
200 | background-color: transparent;
201 | }
202 | /* line 90, ../sass/scrollmenu.scss */
203 | .cpt-selectScrollMenu .menuContent.cross ul li a i {
204 | margin-bottom: 0;
205 | font-size: 24px;
206 | margin: 0;
207 | float: left;
208 | }
209 | /* line 95, ../sass/scrollmenu.scss */
210 | .cpt-selectScrollMenu .menuContent.cross ul li a i.cpt-rightIcon {
211 | flex: 0 0 20px;
212 | color: #ccc;
213 | float: right;
214 | margin-top: 5px;
215 | }
216 | /* line 103, ../sass/scrollmenu.scss */
217 | .cpt-selectScrollMenu .menuContent.cross ul li a p {
218 | width: 80%;
219 | text-indent: 20px;
220 | padding: 2px 0;
221 | font-size: 16px;
222 | text-align: left;
223 | float: left;
224 | line-height: 1.5;
225 | }
226 | /* line 114, ../sass/scrollmenu.scss */
227 | .cpt-selectScrollMenu .menuContent.cross ul li.border-1px {
228 | position: relative;
229 | }
230 | /* line 3, ../sass/border-1px/_mixin.scss */
231 | .cpt-selectScrollMenu .menuContent.cross ul li.border-1px:after {
232 | display: block;
233 | width: 100%;
234 | position: absolute;
235 | background: rgba(17, 27, 37, 0.1) !important;
236 | left: 0;
237 | bottom: 0;
238 | border-top: 1px solid rgba(17, 27, 37, 0.1) !important;
239 | content: '';
240 | }
241 | /* line 121, ../sass/scrollmenu.scss */
242 | .cpt-selectScrollMenu .menuContent ul {
243 | position: relative;
244 | width: 100%;
245 | display: table;
246 | margin: 0;
247 | padding: 0;
248 | }
249 | /* line 128, ../sass/scrollmenu.scss */
250 | .cpt-selectScrollMenu .menuContent ul li {
251 | width: 25%;
252 | float: left;
253 | display: -webkit-flex;
254 | display: flex;
255 | -webkit-justify-content: flex-start;
256 | justify-content: flex-start;
257 | -webkit-flex-direction: column;
258 | flex-direction: column;
259 | -webkit-align-items: center;
260 | align-items: center;
261 | position: relative;
262 | padding: 20px;
263 | cursor: pointer;
264 | }
265 | /* line 139, ../sass/scrollmenu.scss */
266 | .cpt-selectScrollMenu .menuContent ul li:active {
267 | background: #eee;
268 | }
269 | /* line 143, ../sass/scrollmenu.scss */
270 | .cpt-selectScrollMenu .menuContent ul li a {
271 | width: 100%;
272 | height: inherit;
273 | display: -webkit-flex;
274 | display: flex;
275 | -webkit-justify-content: center;
276 | justify-content: center;
277 | -webkit-flex-direction: column;
278 | flex-direction: column;
279 | -webkit-align-items: center;
280 | align-items: center;
281 | text-decoration: none;
282 | background-color: transparent;
283 | position: relative;
284 | }
285 | /* line 153, ../sass/scrollmenu.scss */
286 | .cpt-selectScrollMenu .menuContent ul li a:active {
287 | background-color: transparent;
288 | }
289 | /* line 157, ../sass/scrollmenu.scss */
290 | .cpt-selectScrollMenu .menuContent ul li a i {
291 | display: block;
292 | margin: 0 auto;
293 | color: #878787;
294 | margin-bottom: 10px;
295 | font-size: 32px;
296 | flex: 0 0 30px;
297 | }
298 | /* line 166, ../sass/scrollmenu.scss */
299 | .cpt-selectScrollMenu .menuContent ul li a p {
300 | white-space: nowrap;
301 | overflow: hidden;
302 | -ms-text-overflow: ellipsis;
303 | -o-text-overflow: ellipsis;
304 | text-overflow: ellipsis;
305 | color: #999;
306 | font-size: 14px;
307 | flex: 1 1 auto;
308 | text-align: center;
309 | margin: 0;
310 | }
311 | /* line 180, ../sass/scrollmenu.scss */
312 | .cpt-selectScrollMenu .menuContent ul li i {
313 | display: block;
314 | margin: 0 auto;
315 | font-size: 32px;
316 | color: #878787;
317 | margin-bottom: 10px;
318 | flex: 0 0 30px;
319 | }
320 | /* line 189, ../sass/scrollmenu.scss */
321 | .cpt-selectScrollMenu .menuContent ul li p {
322 | white-space: nowrap;
323 | overflow: hidden;
324 | -ms-text-overflow: ellipsis;
325 | -o-text-overflow: ellipsis;
326 | text-overflow: ellipsis;
327 | color: #999;
328 | font-size: 14px;
329 | flex: 1 1 auto;
330 | text-align: center;
331 | }
332 |
333 | /* line 241, ../sass/scrollmenu.scss */
334 | body, html {
335 | margin: 0;
336 | padding: 0;
337 | -moz-box-sizing: border-box;
338 | -webkit-box-sizing: border-box;
339 | box-sizing: border-box;
340 | }
341 |
342 | /* line 247, ../sass/scrollmenu.scss */
343 | * {
344 | -moz-box-sizing: border-box;
345 | -webkit-box-sizing: border-box;
346 | box-sizing: border-box;
347 | }
348 |
349 | /* line 252, ../sass/scrollmenu.scss */
350 | input:-webkit-autofill,
351 | textarea:-webkit-autofill,
352 | select:-webkit-autofill {
353 | -webkit-box-shadow: 0 0 0 1000px white inset !important;
354 | }
355 |
356 | /* line 262, ../sass/scrollmenu.scss */
357 | input[type=text]:focus, input[type=password]:focus, textarea:focus {
358 | -webkit-box-shadow: 0 0 0 1000px white inset;
359 | }
360 |
361 | /* line 267, ../sass/scrollmenu.scss */
362 | .txt-color-666 {
363 | color: #666 !important;
364 | }
365 |
366 | /* line 271, ../sass/scrollmenu.scss */
367 | .txt-textOneRow {
368 | text-overflow: ellipsis;
369 | overflow: hidden;
370 | white-space: nowrap;
371 | }
372 |
373 | /* line 277, ../sass/scrollmenu.scss */
374 | .txt-textTwoRow {
375 | overflow: hidden;
376 | text-overflow: ellipsis;
377 | display: -webkit-box;
378 | -webkit-line-clamp: 2;
379 | -webkit-box-orient: vertical;
380 | }
381 |
--------------------------------------------------------------------------------
/js/scrollmenu.js:
--------------------------------------------------------------------------------
1 | /*===========================================*/
2 | /*==========By Never forgotten youth=========*/
3 | /*==================js滚动菜单===============*/
4 |
5 | (function($,window){
6 | 'use strict';
7 | //动态加载animate
8 | var loadStyles = function(url) {
9 | var hasSameStyle = false;
10 | var links = $('link');
11 | for(var i = 0;i').css({
51 | background:opt.background,
52 | 'z-index':opt.zIndex,
53 | 'webkit-transition':'all '+opt.duration/1000+'s',
54 | '-moz-transition':'all '+opt.duration/1000+'s',
55 | transition:'all '+opt.duration/1000+'s',
56 | '-webkit-animation-duration':opt.duration/1000+'s',
57 | '-moz-animation-duration':opt.duration/1000+'s',
58 | 'animation-duration':opt.duration/1000+'s',
59 | }).appendTo($('body'));
60 | defaultvalue._showScroll(false);
61 | defaultvalue._event();
62 | };
63 |
64 | defaultvalue._showScroll = function(isShow){
65 | var isshow = isshow || 'false';
66 | if(isShow){
67 | $('body,html').css({height:'auto',overflow:'auto'});
68 |
69 | $(document.body).css({
70 | 'border-right':'none',
71 | })
72 | }else{
73 | var scrollWidth = defaultvalue._getScrollWidth();
74 | $('body,html').css({height:'100%',overflow:'hidden'});
75 | $('body').css({
76 | 'border-right':scrollWidth+'px solid transparent',
77 | })
78 | }
79 | };
80 |
81 | defaultvalue._getScrollWidth = function(){
82 | var noScroll, scroll, oDiv = document.createElement('div');
83 | oDiv.style.cssText = 'position:absolute; top:-1000px; width:100px; height:100px; overflow:hidden;';
84 | noScroll = document.body.appendChild(oDiv).clientWidth;
85 | oDiv.style.overflowY = 'scroll';
86 | scroll = oDiv.clientWidth;
87 | document.body.removeChild(oDiv);
88 | return noScroll-scroll;
89 | }
90 |
91 | defaultvalue._removeMask = function(){
92 | if(!isLowerIe9()){
93 | showMaskEle.addClass("fadeOut").on('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',function(){
94 | showMaskEle.remove();
95 | });
96 | }else{
97 | showMaskEle.remove();
98 | }
99 |
100 | opt.closeAnimate();
101 | };
102 |
103 | defaultvalue._event = function(){
104 | showMaskEle.on('click',function(){
105 | defaultvalue._showScroll(true);
106 | if(opt.clickClose){
107 | defaultvalue._removeMask();
108 | }
109 | })
110 | };
111 |
112 | defaultvalue._init();
113 | };
114 |
115 | var isIE = function(callBack) {
116 | var isIE = false;
117 | if (!!window.ActiveXObject || "ActiveXObject" in window) {
118 | isIE = true;
119 | }
120 | else{
121 | isIE = false;
122 | }
123 |
124 | if(typeof(callBack) === 'function'){
125 | callBack(isIE);
126 | }else{
127 | return isIE;
128 | }
129 | };
130 |
131 | var isLowerIe9 = function(){
132 | return (!window.FormData);
133 | };
134 |
135 | //滚动菜单
136 | $.fn.scrollmenu = function(options) {
137 | var defaultvalue = {
138 | height: 320, //高度
139 | zIndex: 10001, //层级
140 | background: '#fff', //背景色
141 | type: 'cross', //cross 列表样式 or '' 九宫格效果
142 | animateIn: 'fadeInUpBig', //进入的动画方式 animate css
143 | animateOut: 'fadeOutDownBig', //离开是的动画方式
144 | hasLineBorder: true, //是否有border
145 | bscroll: false, //是否使用bettersroll
146 | showRightIcon: true, //横向列表下是否显示右侧图标
147 | duration: 300, //300毫秒
148 | iconSIze: 28,
149 | source: [
150 | {
151 | title:'音乐',
152 | hasHref:false,
153 | href:'#',
154 | font_imgClass:'dw-icon-music',
155 | hrefType:'_self', //_self , _blank, _parent, _top
156 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
157 | },{
158 | title:'搜索',
159 | hasHref:false,
160 | href:'https://github.com/IFmiss/centermenu',
161 | font_imgClass:'dw-icon-search',
162 | hrefType:'_self',
163 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
164 | },{
165 | title:'二维码',
166 | hasHref:false,
167 | href:'#',
168 | font_imgClass:'dw-icon-erweicode',
169 | hrefType:'_self',
170 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
171 | },{
172 | title:'安卓',
173 | hasHref:false,
174 | href:'#',
175 | font_imgClass:'dw-icon-android',
176 | hrefType:'_self',
177 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
178 | },{
179 | title:'ios',
180 | hasHref:false,
181 | href:'#',
182 | font_imgClass:'dw-icon-apple',
183 | hrefType:'_self',
184 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
185 | },{
186 | title:'喜欢',
187 | hasHref:true,
188 | href:'https://github.com/IFmiss/centermenu',
189 | font_imgClass:'dw-icon-like',
190 | hrefType:'_self',
191 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
192 | },{
193 | title:'提现',
194 | hasHref:true,
195 | href:'https://github.com/IFmiss/centermenu',
196 | font_imgClass:'dw-icon-money',
197 | hrefType:'_self',
198 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
199 | },{
200 | title:'微博',
201 | hasHref:true,
202 | href:'https://github.com/IFmiss/centermenu',
203 | font_imgClass:'dw-icon-weibo',
204 | hrefType:'_self',
205 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
206 | },{
207 | title:'密码',
208 | hasHref:true,
209 | href:'https://github.com/IFmiss/centermenu',
210 | font_imgClass:'dw-icon-password',
211 | hrefType:'_self',
212 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
213 | },{
214 | title:'分享',
215 | hasHref:true,
216 | href:'https://github.com/IFmiss/centermenu',
217 | font_imgClass:'dw-icon-share',
218 | hrefType:'_self',
219 | rightFont_imgClass: 'dw-icon-right', //右侧的图标信息
220 | }
221 | ],
222 | click:function(ele,index){},
223 |
224 | }
225 |
226 | var _this = this;
227 |
228 | var opt = $.extend(defaultvalue,options||{});
229 |
230 |
231 | defaultvalue._init = function(){
232 | if($('body').find('.cpt-selectScrollMenu').length){
233 | return;
234 | };
235 |
236 | _this.cpt_selectScrollMenu = $('').css({
237 | height:opt.height,
238 | background:opt.background,
239 | 'z-index':opt.zIndex,
240 | 'webkit-transition':'all '+opt.duration/1000+'s',
241 | '-moz-transition':'all '+opt.duration/1000+'s',
242 | transition:'all '+opt.duration/1000+'s',
243 | '-webkit-animation-duration':opt.duration/1000+'s',
244 | '-moz-animation-duration':opt.duration/1000+'s',
245 | 'animation-duration':opt.duration/1000+'s',
246 | }).appendTo($('body'));
247 |
248 | _this.cpt_selectScrollMenuContent = $('').css({
249 | position:'relative',
250 | width:'100%',
251 | }).appendTo(_this.cpt_selectScrollMenu);
252 |
253 | _this.cpt_ul_menuList = $('').appendTo(_this.cpt_selectScrollMenuContent);
254 |
255 | var length = opt.source.length;
256 |
257 | for(var i = 0;i