Meta tags:
description= A propriedade CSS opacity define o nível de transparência de um elemento. Experimente exemplos da propriedade opacity e veja os resultados.;
Headings (most frequently used words):
opacity, propriedade, de, vs, exemplo, da, css, como, valor, funciona, sintaxe, fundos, rgba, efeito, desbotamento, no, hover, visibility, display, valores, prática, resultado, com, três, níveis, opacidade,
Text of the page (most frequently used words):
#opacity (52), border (34), css (31), text (28), color (25), background (20), font (20), style (19), elemento (18), grid (18), propriedade (17), width (17), aprender (15), valor (14), html (13), the (13), column (13), como (12), não (10), type (10), break (10), top (9), right (9), left (9), bottom (9), image (9), animation (9), offset (8), position (8), stroke (8), para (7), rgba (7), define (7), opacidade (7), fundo (7), com (7), transition (7), uma (7), height (7), overflow (7), decoration (7), flex (7), todos (6), visibility (6), display (6), page (6), totalmente (6), nível (6), que (6), experimente (6), only (6), class (6), 300 (6), img (6), title (6), exemplo (6), align (6), padding (6), margin (6), variant (6), w3docs (5), hover (5), sintaxe (5), cor (5), copiar (5), elementos (5), filhos (5), você (5), line (5), last (5), outline (5), radius (5), child (5), formatter (5), generator (4), prática (4), valores (4), opaco (4), apenas (4), ela (4), também (4), sim (4), imagem (4), box (4), texto (4), transparência (4), body (4), media (4), default (4), head (4), div (4), lorem (4), ipsum (4), dummy (4), and (4), typesetting (4), industry (4), has (4), mode (4), transform (4), fill (4), size (4), list (4), template (4), row (4), gap (4), rule (4), nth (4), first (4), json (3), code (3), encoder (3), editor (3), quizzes (3), exercícios (3), php (3), javascript (3), efeito (3), transparente (3), padrão (3), initial (3), mas (3), ele (3), none (3), 8ebf42 (3), quando (3), house (3), alt (3), uploads (3), 0001 (3), 4982c4f43023330a662b9baed5a407e391ae6161 (3), jpeg (3), src (3), property (3), abaixo (3), not (3), object (3), css3 (3), são (3), qualquer (3), word (3), wrap (3), spacing (3), range (3), origin (3), justify (3), items (3), before (3), after (3), max (3), letter (3), content (3), columns (3), auto (3), direction (3), clip (3), string (3), tools (3), italiano (2), português (2), español (2), français (2), русский (2), deutsch (2), english (2), sobre (2), beautifier (2), diff (2), password (2), ferramentas (2), python (2), java (2), git (2), livros (2), exemplos (2), snippets (2), desbotamento (2), fundos (2), funciona (2), this (2), order (2), rotate (2), número (2), entre (2), seu (2), conteúdo (2), usada (2), pai (2), inherit (2), usar (2), number (2), invisível (2), ainda (2), interativo (2), pointer (2), events (2), hidden (2), ocupa (2), espaço (2), thumb (2), animável (2), criar (2), cursor (2), 191 (2), 142 (2), with (2), semitransparente (2), desbota (2), dentro (2), aplica (2), mantendo (2), mesmo (2), example (2), document (2), doctype (2), código (2), printing (2), been (2), standard (2), ever (2), since (2), 1500s (2), when (2), unknown (2), printer (2), took (2), galley (2), scrambled (2), make (2), specimen (2), book (2), survived (2), five (2), centuries (2), but (2), also (2), leap (2), into (2), electronic (2), remaining (2), essentially (2), unchanged (2), example2 (2), level (2), example1 (2), pode (2), forma (2), desbotado (2), acima (2), informação (2), desbotados (2), quiser (2), use (2), por (2), propriedades (2), unicode (2), timing (2), function (2), duration (2), delay (2), shadow (2), rendering (2), skip (2), perspective (2), inside (2), anchor (2), path (2), blend (2), min (2), rows (2), start (2), end (2), flow (2), feature (2), empty (2), counter (2), count (2), repeat (2), read (2), hash (2), 2026, direitos, reservados, feito, desenvolvedores, idioma, política, privacidade, contato, empresa, try, tutoriais, gratuitos, web, desde, 2014, next, previous, yes, was, helpful, verificar, herda, faz, descrição, responde, cliques, adicione, precisar, seja, clicável, visível, declaração, ocultam, comportam, formas, diferentes, ease, combina, naturalmente, efeitos, transição, suave, desbotar, até, usuário, passar, controlar, próprio, consulte, transparent, stays, crisp, fades, whole, including, erro, comum, deseja, caixa, fica, mais, fraco, difícil, ler, outro, três, níveis, primeira, segunda, terceira, resultado, dom, versão, herdado, inicial, menor, cria, novo, isso, alterar, sobrepõe, vizinhos, fazendo, apareça, irmãos, diferente, esperado, contexto, empilhamento, afeta, junto, tornar, filho, novamente, atribuindo, sólidos, dica, negativos, inválidos, limitados, navegador, trata, possível, escrever, porcentagem, nos, navegadores, modernos, onde, equivale, intermediário, torna, menores, significam, maior, parcialmente, permanece, tudo, dele, pareça, escurecer, botão, inativo, sobrepor, marca, água, grau, controla, completo, bordas, quaisquer, ficam, juntos, das, veja, resultados, zoom, index, writing, will, change, widows, white, space, vertical, user, select, bidi, underline, orientation, indent, ink, combine, upright, table, layout, tab, linecap, dashoffset, dasharray, speak, shape, outside, scrollbar, scroll, behavior, resize, quotes, place, orphans, distance, fit, mix, lines, clamp, keyframes, isolation, import, hyphens, hanging, punctuation, areas, area, weight, numeric, ligatures, east, asian, caps, alternates, stretch, language, override, adjust, kerning, values, settings, family, face, float, shrink, grow, basis, filter, cells, reset, increment, span, clear, charset, caret, caption, side, sizing, source, slice, outset, collapse, block, bleed, attachment, backface, appearance, play, state, name, iteration, self, all, properties, visited, valid, target, selection, scope, root, required, write, placeholder, out, optional, link, lang, invalid, indeterminate, fullscreen, focus, enabled, disabled, dir, checked, active, seletores, selectors, guia, flexbox, guides, gradientes, nomes, cores, tabelas, links, uso, introdução, basic, entrar, pesquisar, formatters, url, reverse, sha256, md5, length, calculator, colors, hsl, hex, mixer, converter, picker, general, cursos,
Text of the page (random words):
propriedade css opacity w3docs w3docs livros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python cursos quizzes exercícios snippets ferramentas general tools html editor password generator html encoder code diff json beautifier todos os 13 color tools color picker color converter color mixer color hex colors hsl todos os 10 string tools string length calculator md5 hash generator sha256 hash generator string reverse url encoder todos os 19 code formatters javascript formatter css formatter html formatter json formatter php formatter pesquisar na w3docs k pt english en deutsch de русский ru français fr español es português pt italiano it entrar aprender css css basic introdução ao css uso do css sintaxe css css id e class css text css font css links tabelas css css border css padding css margin nomes de cores css gradientes css css guides guia do flexbox propriedades css3 css selectors seletores css active after before checked default dir disabled empty enabled first child first letter first line first of type focus fullscreen hover in range indeterminate invalid lang last child last of type link not nth child nth last child nth last of type nth of type only child only of type optional out of range placeholder read only read write required root scope selection target valid visited css properties align content align items all animation align self animation delay animation direction animation duration animation fill mode animation iteration count animation name animation play state animation timing function appearance backface visibility background background attachment background blend mode background clip background color background image background origin background position background position x background position y background repeat background size bleed block overflow border border bottom border bottom color border bottom left radius border bottom right radius border bottom style border bottom width border collapse border color border image border image outset border image repeat border image slice border image source border image width border left border left color border left style border left width border radius border right border right color border right style border right width border spacing border style border top border top color border top left radius border top right radius border top style border top width border width bottom box decoration break box shadow box sizing break after break before break inside caption side caret color charset clear clip clip path color columns column count column fill column gap column rule column rule color column rule style column rule width column span column width content counter increment counter reset cursor direction display empty cells fill filter flex flex basis flex direction flex flow flex grow flex shrink flex wrap float font font face font display font family font feature settings font feature values font kerning font size font size adjust font language override font stretch font style font variant font variant alternates font variant caps font variant east asian font variant ligatures font variant numeric font weight grid grid area grid auto columns grid auto flow grid auto rows grid column grid column end grid column gap grid column start grid gap grid row grid row end grid row gap grid row start grid template grid template areas grid template columns grid template rows hanging punctuation height hyphens image rendering import initial letter isolation justify content justify items keyframes left letter spacing line break line clamp line height list style list style image list style position list style type margin margin bottom margin left margin right margin top max height max lines max width media min height min width mix blend mode object fit object position offset offset anchor offset distance offset path offset position offset rotate opacity order orphans outline outline color outline offset outline style outline width overflow overflow anchor overflow wrap overflow x overflow y padding padding bottom padding left padding right padding top page break page break after page break before page break inside perspective perspective origin place items pointer events position quotes resize right scroll behavior scrollbar shape outside speak stroke stroke dasharray stroke dashoffset stroke linecap stroke width tab size table layout text align text align last text combine upright text decoration text decoration color text decoration line text decoration skip text decoration skip ink text decoration style text fill color text indent text justify text orientation text overflow text rendering text shadow text stroke text stroke color text stroke width text transform text underline position top transform transform origin transform style transition transition delay transition duration transition property transition timing function unicode bidi unicode range user select vertical align visibility white space widows width will change word break word spacing word wrap writing mode z index zoom propriedade css opacity a propriedade css opacity define o nível de transparência de um elemento experimente exemplos da propriedade opacity e veja os resultados a propriedade css opacity define o grau de transparência de um elemento ela controla o elemento por completo texto fundo bordas e quaisquer elementos filhos ficam desbotados juntos é uma das propriedades do css3 use opacity quando quiser que um elemento e tudo dentro dele pareça desbotado para escurecer um botão inativo criar um efeito de hover ou sobrepor uma marca d água ao conteúdo como o valor de opacity funciona o valor é um número entre 0 e 1 0 o elemento é totalmente transparente invisível mas ainda ocupa espaço e permanece interativo 1 o valor padrão o elemento é totalmente opaco qualquer valor intermediário como 0 5 torna o elemento parcialmente transparente valores menores significam maior transparência também é possível escrever o valor como uma porcentagem nos navegadores modernos onde 50 equivale a 0 5 i informação valores negativos são inválidos e são limitados o navegador trata qualquer valor abaixo de 0 como 0 e qualquer valor acima de 1 como 1 dica a opacidade afeta os elementos filhos também quando você desbota um elemento pai todos os filhos são desbotados junto e você não pode tornar um filho totalmente opaco novamente atribuindo opacity 1 a ele se você quiser apenas um fundo semitransparente mantendo o texto e os filhos sólidos use uma cor rgba no background color por exemplo background color rgba 142 191 66 0 3 i informação um elemento com valor de opacity menor que 1 cria um novo contexto de empilhamento isso pode alterar a forma como ele se sobrepõe a elementos vizinhos fazendo com que um elemento desbotado apareça acima ou abaixo de irmãos de forma diferente do esperado valor inicial 1 0 aplica se a todos os elementos herdado não animável sim versão css3 sintaxe dom object style opacity 0 3 sintaxe sintaxe css da propriedade opacity opacity number initial inherit copiar exemplo da propriedade opacity exemplo de código css com opacity doctype html html head title title of the document title style example1 background color 8ebf42 opacity 0 3 example2 background color 8ebf42 opacity 1 style head body h2 opacity property example h2 h3 opacity level is 0 3 h3 div class example1 lorem ipsum is dummy text of the printing and typesetting industry lorem ipsum has been the industry s standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book it has survived not only five centuries but also the leap into electronic typesetting remaining essentially unchanged div h3 opacity level is 1 h3 div class example2 lorem ipsum is dummy text of the printing and typesetting industry lorem ipsum has been the industry s standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book it has survived not only five centuries but also the leap into electronic typesetting remaining essentially unchanged div body html copiar experimente você mesmo resultado no exemplo abaixo o nível de opacidade da primeira imagem é 1 0 da segunda imagem é 0 6 e da terceira imagem é 0 2 exemplo da propriedade opacity com três níveis de opacidade outro exemplo de código css com opacity doctype html html head title title of the document title style img a opacity 1 img b opacity 0 6 img c opacity 0 2 style head body h2 opacity property example h2 h3 opacity 1 0 h3 img src uploads media default 0001 01 4982c4f43023330a662b9baed5a407e391ae6161 jpeg alt house width 300 height 300 class a h3 opacity 0 6 h3 img src uploads media default 0001 01 4982c4f43023330a662b9baed5a407e391ae6161 jpeg alt house width 300 height 300 class b h3 opacity 0 2 h3 img src uploads media default 0001 01 4982c4f43023330a662b9baed5a407e391ae6161 jpeg alt house width 300 height 300 class c body html copiar experimente você mesmo opacity vs fundos rgba um erro comum é usar opacity quando se deseja apenas um fundo semitransparente como opacity desbota os elementos filhos também o texto dentro de uma caixa fica mais fraco e difícil de ler uma cor de fundo rgba aplica transparência apenas à cor de fundo mantendo o texto totalmente opaco fades the whole box including the text with opacity background color 8ebf42 opacity 0 3 only the background is transparent text stays crisp with rgba background color rgba 142 191 66 0 3 copiar para controlar a cor do próprio elemento consulte background color efeito de desbotamento no hover como opacity é animável combina naturalmente com transition para criar efeitos de transição suave como desbotar uma imagem até o usuário passar o cursor sobre ela thumb opacity 0 6 transition opacity 0 3 s ease thumb hover opacity 1 copiar opacity vs visibility e display opacity 0 visibility hidden e display none ocultam um elemento mas se comportam de formas diferentes declaração visível ocupa espaço clicável opacity 0 não sim sim visibility hidden não sim não display none não não não um elemento com opacity 0 é invisível mas ainda responde a cliques adicione pointer events none se precisar que ele também não seja interativo valores valor descrição experimente number define o nível de opacidade o valor padrão é 1 0 experimente initial faz a propriedade usar seu valor padrão experimente inherit herda a propriedade do elemento pai prática prática o que é a propriedade opacity no css e como ela é usada o que é a propriedade opacity no css e como ela é usada a propriedade opacity define o nível de opacidade de um elemento a propriedade opacity define o nível de opacidade apenas para o conteúdo do elemento e não para o fundo a propriedade opacity define o nível de opacidade de um elemento e seu fundo a propriedade opacity define a cor de um elemento o valor da propriedade opacity é um número entre 0 0 totalmente transparente e 1 0 totalmente opaco verificar was this page helpful yes no previous offset rotate next order on this page como o valor de opacity funciona sintaxe opacity vs fundos rgba efeito de desbotamento no hover opacity vs visibility e display valores prática w3docs tutoriais exemplos exercícios snippets e quizzes gratuitos para a web desde 2014 livros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python prática exercícios quizzes editor try it ferramentas html editor password generator html encoder code diff json beautifier empresa sobre contato política de privacidade idioma english deutsch русский français español português italiano 2026 w3docs todos os direitos reservados feito para desenvolvedores
|