Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                	<div id="splash">
		<div id="splash_text"></div>
		<div class="loader_cover loader_cover-up"></div>
		<div class="loader_cover loader_cover-down"></div>

        <div id="container">
		<p>ローディング後、この画面が見えます。<br>ローディングで使用したライブラリ:<a href="" target="_blank"></a></p>
<script src="" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>



                @charset "utf-8";

/*========= LoadingのためのCSS ===============*/

/* Loading背景画面設定 */
#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    text-align: center;
    color: #fff;

/* Loading画像中央配置 */
#splash_text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -50%);
    color: #fff;
    width: 100%;

#splash_text svg {
    height: 5px;

.loader_cover {
    width: 100%;
    height: 50%;
    background-color: #333;
    transition: all 5.0s cubic-bezier(0, 1, .5, .5);
    transform: scaleY(1);

.loader_cover-up {
    transform-origin: center top;

.loader_cover-down {
    position: absolute;
    bottom: 0;
    transform-origin: center bottom;

.coveranime {
    transform: scaleY(0);

/*========= レイアウトのためのCSS ===============*/

#container {
    width: 100%;
    height: 100vh;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

a {
    color: #333;

a:hover {
    text-decoration: none;



var bar = new ProgressBar.Line(splash_text, { //id名を指定
    easing: 'easeInOut', //アニメーション効果linear、easeIn、easeOut、easeInOutが指定可能
    duration: 3000, //時間指定(1000=1秒)
    strokeWidth: 0.9, //進捗ゲージの太さ
    color: 'lime', //進捗ゲージのカラー
    trailWidth: 0.9, //ゲージベースの線の太さ
    trailColor: '#555', //ゲージベースの線のカラー
    text: { //テキストの形状を直接指定				
        style: { //天地中央に配置
            position: 'absolute',
            left: '50%',
            top: '50%',
            padding: '0',
            margin: '-30px 0 0 0', //バーより上に配置
            transform: 'translate(-50%,-50%)',
            'font-size': '2rem',
            color: '#fff',
        autoStyleContainer: false //自動付与のスタイルを切る
    step: function (state, bar) {
        bar.setText(Math.round(bar.value() * 100) + ' %'); //テキストの数値

bar.animate(1.0, function () { //バーを描画する割合を指定します 1.0 なら100%まで描画します
    $("#splash_text").fadeOut(10); //フェードアウトでローディングテキストを削除
    $(".loader_cover-up").addClass("coveranime"); //カバーが上に上がるクラス追加
    $(".loader_cover-down").addClass("coveranime"); //カバーが下に下がるクラス追加
    $("#splash").fadeOut(); //#splashエリアをフェードアウト