Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


                <!DOCTYPE html>
<html lang="en">
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width,
        <link rel="stylesheet" href="app.css"/>

        <div class="container">  </div>

        <script src="app.js"></script>


*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

body {
    width: 100%;
    height: 100%;
    background: rgb(26, 24, 24);

.container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;

.container span {
    position: absolute;
    background: transparent;
    box-shadow: inset 0 0 20px #fff;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    animation: anime 2s linear infinite;
    -webkit-animation: anime 2s linear infinite;

.container span::before {
    content: "";
    width: 100%;
    height: 100%;
    background: radial-gradient(#fff, transparent);
    display: block;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transform: scale(0.5) translate(-30%, -20%);
    -webkit-transform: scale(0.5) translate(-30%, -20%);
    -moz-transform: scale(0.5) translate(-30%, -20%);
    -ms-transform: scale(0.5) translate(-30%, -20%);
    -o-transform: scale(0.5) translate(-30%, -20%);

/* animasyon*/

@keyframes anime {
    0% {
        transform: translateY(0%);
        -webkit-transform: translateY(0%);
        -moz-transform: translateY(0%);
        -ms-transform: translateY(0%);
        -o-transform: translateY(0%);
        opacity: 1;
    100% {
        transform: translateY(1200%);
        -webkit-transform: translateY(1200%);
        -moz-transform: translateY(1200%);
        -ms-transform: translateY(1200%);
        -o-transform: translateY(1200%);
        opacity: 0;


                function baloncuklar() {
    const container = document.querySelector(".container"); //container classın değişkene atıyoruz.
    const baloncuk = document.createElement("span"); //element oluşturuyoruz
    const boyut = Math.random() * 50; //baloncuklar ıcın rastgele boy alıyoruz. = boyut + "px"; //baloncuklara genişlik veriyoruz = boyut + "px"; //baloncuklara yükseklil veriyoruz = Math.random() * innerWidth + "px"; //Baloncukların ekranın neresınde geleceğini ayarlıyoruz.

    container.appendChild(baloncuk); // Container classına eklemesini yapıyoruz.
    setTimeout(() => { //baloncukların ne zaman kaybolacağını ayarlıyoruz

// fonksiyonumuzu belirli bir döngüde calıstırmak ıcın setIntervalı kullanıyoruz
setInterval(baloncuklar, 7000);