Memberi Efek Pada Gambar Dengan CSS3

Discussion in 'HTML & Website Design' started by Achmad Muharya, Jan 22, 2015.

  1. Achmad Muharya

    Achmad Muharya Member

    Joined:
    Apr 29, 2014
    Messages:
    424
    Likes Received:
    23
    Trophy Points:
    18
    Kalo saya lihat-lihat di Bersosial kayanya udah gak ada lagi atau mungkin jarang yang ngebagiin tutorial buat desain blog. Yasudahlah, daripada ngeributin masalah itu mending lihat thread yang ini, mungkin bisa berguna untuk blognya :D. Ini cuman tutorial tingan yang saya dapat di TWD, bagi yang udah tau silahkan lewatin aja ya :D

    CSS
    Efek nge-Blur
    [​IMG]
    Code:
      .filter img{
            -webkit-filter: blur(5px);
            -moz-filter: blur(5px);
            -ms-filter: blur(5px);
            -o-filter: blur(5px);
            filter: blur(5px);
        }

    Efek Grayscale atau abu-abu
    [​IMG]
    Code:
    .filter img{
            -webkit-filter: grayscale(100%);
            -moz-filter: grayscale(100%);
            -o-filter: grayscale(100%);
            -ms-filter: grayscale(100%);
            filter: grayscale(100%);
        }

    Efek Sepia
    [​IMG]
    Code:
    .filter img{
            -webkit-filter: sepia(100%);
            -moz-filter: sepia(100%);
            -o-filter: sepia(100%);
            -ms-filter: sepia(100%);
            filter: sepia(100%);
        }

    Efek Brightgness
    [​IMG]
    Code:
    .filter img{
            -webkit-filter: brightness(0.3);
            -moz-filter: brightness(0.3);
            -o-filter: brightness(0.3);
            -ms-filter: brightness(0.3);
            filter: brightness(0.3);
        }

    Efek Saturation
    [​IMG]
    Code:
    .filter img{
            -webkit-filter: saturate(50%);
            -moz-filter: saturate(50%);
            -o-filter: saturate(50%);
            -ms-filter: saturate(50%);
            filter: saturate(50%);
        }

    Efek Hue-Rotate
    [​IMG]
    Code:
    .filter img{
            filter: hue-rotate(180deg);
            -webkit-filter: hue-rotate(180deg);
            -moz-filter: hue-rotate(180deg);
            -o-filter: hue-rotate(180deg);
            -ms-filter: hue-rotate(180deg);
        }

    Efek Contrast
    [​IMG]
    Code:
    .filter img{
            -webkit-filter: contrast(180%);
            -moz-filter: contrast(180%);
            -o-filter: contrast(180%);
            -ms-filter: contrast(180%);
            filter: contrast(180%);
        }

    Efek Invert atau Negatif
    [​IMG]
    .filter img{
    -webkit-filter: invert(100%);
    -moz-filter: invert(100%);
    -o-filter: invert(100%);
    -ms-filter: invert(100%);
    filter: invert(100%);
    }[/CODE]

    HTML

    Untuk mengeluarkan efeknya silahkan ikuti langkah dibawah ini:

    Code:
            <div class="filter">
                <img src="URL gambarnya" alt="" />
            </div>
    Kalo ada yang salah atau kurang jangan diam aja ya :D
     
  2. simopunkc

    simopunkc Member

    Joined:
    Aug 6, 2014
    Messages:
    298
    Likes Received:
    10
    Trophy Points:
    18
    Google+:
    wah,.. mantep nih gan kode css-nya... :D
     
  3. Musa M

    Musa M Member

    Joined:
    Apr 29, 2014
    Messages:
    836
    Likes Received:
    57
    Trophy Points:
    28
    nanti pasangnya dimana ya , keren nih . maklum saya tidak paham dengan kode2 kyak gini*berkeringat*
     
  4. Muhammad Amin

    Muhammad Amin Member

    Joined:
    Jul 18, 2014
    Messages:
    255
    Likes Received:
    17
    Trophy Points:
    18
    Wah koleksi kode buat mempercantik blog :D
     
  5. alwalijcok

    alwalijcok New Member

    Joined:
    Jan 21, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    wah keren efeknya buat bikin gambar ok
    klo wp kodingnya taruh mana gan
     
  6. Musa M

    Musa M Member

    Joined:
    Apr 29, 2014
    Messages:
    836
    Likes Received:
    57
    Trophy Points:
    28
    wkwkw ide berlian*ketawa1*
     
  7. Devita

    Devita Active Member

    Joined:
    Oct 11, 2014
    Messages:
    1,194
    Likes Received:
    43
    Trophy Points:
    48
    Google+:
    Bagus den, bisa di terapkan
     
  8. pram

    pram Well-Known Member

    Joined:
    Sep 23, 2013
    Messages:
    3,093
    Likes Received:
    161
    Trophy Points:
    63
    Google+:
    Bagus juga ini ya, tanpa harus edit bisa langsung berubah gambarnya gak perlu kamera 360 :v
     
  9. bespe

    bespe Member

    Joined:
    Oct 30, 2014
    Messages:
    957
    Likes Received:
    51
    Trophy Points:
    28
    ane book dulu tutornya gan:D
     
  10. exabytes-id

    exabytes-id Member

    Joined:
    Oct 3, 2013
    Messages:
    866
    Likes Received:
    35
    Trophy Points:
    28
    bisa disimpan ni sourcodenya, untuk di gunakan source code project kedepanya.
     
  11. lembing

    lembing Active Member

    Joined:
    Aug 21, 2014
    Messages:
    1,179
    Likes Received:
    91
    Trophy Points:
    48
  12. dudukper

    dudukper New Member

    Joined:
    Jan 23, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    wow baru tau kalau gini bisa direkayasa via css
     
  13. Achmad Muharya

    Achmad Muharya Member

    Joined:
    Apr 29, 2014
    Messages:
    424
    Likes Received:
    23
    Trophy Points:
    18
    Wah kalo itu saya juga gak tau om :( maklum udah gak main WP lagi :D
     
  14. Achmad Muharya

    Achmad Muharya Member

    Joined:
    Apr 29, 2014
    Messages:
    424
    Likes Received:
    23
    Trophy Points:
    18
    kalo di blogger tinggal pasang aja di templatenya om :D nanti kalo mau bikin artikel, gambar artikelnya jangan lupa dibungkus sama HTML diatas :D
     
  15. Achmad Muharya

    Achmad Muharya Member

    Joined:
    Apr 29, 2014
    Messages:
    424
    Likes Received:
    23
    Trophy Points:
    18
    buat saya itu yang malah bikin ribet om *berkeringat*, kalo ini kan bisa dibilang otomatis tinggal pasang HTMLnya doang *jail*
     
  16. Achmad Muharya

    Achmad Muharya Member

    Joined:
    Apr 29, 2014
    Messages:
    424
    Likes Received:
    23
    Trophy Points:
    18
    Hihihi *jail* ketuaun nih yang suka make 360 *jail*

    Silahkan om :D

    Boleh-boleh *malu1*

    Dengan CSS bisa bikin apa aja om, bikin karakter Batman aja bisa *ketawa2*
     
  17. pram

    pram Well-Known Member

    Joined:
    Sep 23, 2013
    Messages:
    3,093
    Likes Received:
    161
    Trophy Points:
    63
    Google+:
    Sebenarnya saya nggak suka main 360 si om, soalnya biasanya di smartphone keluaran baru kamera default hp sudah support dengan efek filter diatas :D
     
  18. Ibay

    Ibay Member

    Joined:
    Nov 11, 2014
    Messages:
    382
    Likes Received:
    19
    Trophy Points:
    18
    Ini 360 versinya blogger kyaknya om.. hehehe
     
  19. pram

    pram Well-Known Member

    Joined:
    Sep 23, 2013
    Messages:
    3,093
    Likes Received:
    161
    Trophy Points:
    63
    Google+:
    Kalau kreatif bisa juga bikin editor online menggunakan ini :V
     
  20. noetral

    noetral Member

    Joined:
    Apr 6, 2013
    Messages:
    457
    Likes Received:
    17
    Trophy Points:
    18
    Google+:
    wih keren gan css na, efeknya kaya di photoshop :D
     
Loading...

Share This Page