jQuery 的进度条插件 Bootstrap Progressbar

码农软件 · 软件分类 · jQuery界面效果 · 2020-01-01 14:27:25

软件介绍

Bootstrap Progressbar 是一个 jQuery 插件,扩展基本引导进度。它通过添加 Javascript 中预先存在的 CSS 转换提供了动态进度条。此外,你可以在动态进度条中通过回调显示当前进度信息。

Bootstrap Progressbar

代码示例

default values

Progressbar.defaults = {
    transition_delay: 300,
    refresh_speed: 50,
    display_text: 'none',
    use_percentage: true,    percent_format: function(percent) { return percent + '%'; },    amount_format: function(amount_part, amount_total) { return amount_part + ' / ' + amount_total; },
    update: $.noop,
    done: $.noop,
    fail: $.noop
};

transition_delay

$(document).ready(function() {
    $('.progress .progress-bar').progressbar({
        transition_delay: 1500
    });
});

animation

  1. horizontal

  • less

    .progress .bar {
        .transition(width 2s ease-in-out);
    }
  • scss

    .progress.vertical .progress-bar {
        @include transition(width 2s ease-in-out);
    }
  • css

    .progress .bar {
        -webkit-transition: width 2s ease-in-out;
        -moz-transition: width 2s ease-in-out;
        -ms-transition: width 2s ease-in-out;
        -o-transition: width 2s ease-in-out;
        transition: width 2s ease-in-out;
    }
  • vertical

    • less

      .progress.vertical .bar {
          .transition(height 2s ease-in-out);
      }
    • scss

      .progress.vertical .bar {
          @include transition(height 2s ease-in-out);
      }
    • css

      .progress.vertical .bar {
          -webkit-transition: height 2s ease-in-out;
          -moz-transition: height 2s ease-in-out;
          -ms-transition: height 2s ease-in-out;
          -o-transition: height 2s ease-in-out;
          transition: height 2s ease-in-out;
      }


    本文地址:https://codercto.com/soft/d/22430.html

    深入理解C指针

    深入理解C指针

    [美] Richard Reese / 陈晓亮 / 人民邮电出版社 / 2014-2 / 45.00

    深入理解C指针和内存管理,提升编程效率!这是一本实战型图书,通过它,读者可以掌握指针动态操控内存的机制、对数据结构的增强支持,以及访问硬件等技术。本书详细阐述了如何在数组、字符串、结构体和函数中使用指针,同时演示了相应的内存模型及其对指针使用的影响。 指针为C语言带来了强大的功能和灵活性,却也是C语言中最难啃的一块“骨头”。本书旨在帮读者透彻理解指针,解决这个老大难问题。不论是初学者还是经验......一起来看看 《深入理解C指针》 这本书的介绍吧!

    JS 压缩/解压工具
    JS 压缩/解压工具

    在线压缩/解压 JS 代码

    JSON 在线解析
    JSON 在线解析

    在线 JSON 格式化工具

    XML 在线格式化
    XML 在线格式化

    在线 XML 格式化压缩工具