Locale

Language
English
English
English
French
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

Effect

Effect is attached to a particular event of a target.

Catalog
Blind
click
Clip
click
Drop
click
Explode
click
Fold
doubleclick
Puff
doubleclick
Slide
doubleclick
Scale
doubleclick
Bounce
click
Pulsate
click
Shake
click
Size
click
Target
On Load

<div class="card">
    <h5 class="mt-0">Catalog</h5>
    <p:panelGrid columns="4" cellpadding="7" layout="flex">
        <p:panel id="blind" header="Blind">
            <h:outputText value="click"/>
            <p:effect type="blind" event="click">
                <f:param name="direction" value="'horizontal'"/>
            </p:effect>
        </p:panel>

        <p:panel id="clip" header="Clip">
            <h:outputText value="click"/>
            <p:effect type="clip" event="click"/>
        </p:panel>

        <p:panel id="drop" header="Drop">
            <h:outputText value="click"/>
            <p:effect type="drop" event="click"/>
        </p:panel>

        <p:panel id="explode" header="Explode">
            <h:outputText value="click"/>
            <p:effect type="explode" event="click"/>
        </p:panel>

        <p:panel id="fold" header="Fold">
            <h:outputText value="doubleclick"/>
            <p:effect type="fold" event="dblclick"/>
        </p:panel>

        <p:panel id="puff" header="Puff">
            <h:outputText value="doubleclick"/>
            <p:effect type="puff" event="dblclick"/>
        </p:panel>

        <p:panel id="slide" header="Slide">
            <h:outputText value="doubleclick"/>
            <p:effect type="slide" event="dblclick"/>
        </p:panel>

        <p:panel id="scale" header="Scale">
            <h:outputText value="doubleclick"/>
            <p:effect type="scale" event="dblclick">
                <f:param name="percent" value="90"/>
            </p:effect>
        </p:panel>

        <p:panel id="bounce" header="Bounce">
            <h:outputText value="click"/>
            <p:effect type="bounce" event="click"/>
        </p:panel>

        <p:panel id="pulsate" header="Pulsate">
            <h:outputText value="click"/>
            <p:effect type="pulsate" event="click"/>
        </p:panel>

        <p:panel id="shake" header="Shake">
            <h:outputText value="click"/>
            <p:effect type="shake" event="click"/>
        </p:panel>

        <p:panel id="size" header="Size">
            <h:outputText value="click"/>
            <p:effect type="size" event="click">
                <f:param name="to" value="{width: 200,height: 60}"/>
            </p:effect>
        </p:panel>
    </p:panelGrid>
</div>

<div class="card">
    <h5>Target</h5>
    <h:form>
        <p:commandButton type="button" value="Show" style="display:block" icon="pi pi-image">
            <p:effect type="puff" event="click" for="img">
                <f:param name="mode" value="'show'"/>
            </p:effect>
        </p:commandButton>
        <p:graphicImage id="img" name="demo/images/nature/nature1.jpg" style="display:none"/>
    </h:form>
</div>

<div class="card">                
    <h:form>
        <h5>On Load</h5>
        <p:messages id="messages" closable="true">
            <p:effect type="pulsate" event="load" delay="500"/>
        </p:messages>

        <h:panelGrid columns="2" cellpadding="7">
            <p:outputLabel for="text" value="Type:"/>
            <p:inputText id="text" value="#{effectView.text}" required="true"/>
        </h:panelGrid>

        <p:commandButton id="submit" value="Echo" action="#{effectView.echo}" update="messages" styleClass="mt-3" />
    </h:form>
</div>