AI Prompt Library: Code

Find Cool Ideas for Your Code Prompts

Experience the Power of AI

Explore Our Library of AI Prompts

Content based
Css
From scratch
Generative
JavaScript
Animation
Background
Box delivery
Brainstorming
Business development
Button
Chat
Clock
Customer Service
Description
Digital Art
eCommerce
Form
Gradient
Handmade
Help Center
Hover
Illustration
Isometric
Marketing
Marketing strategy
Target
Text
Title
Vector
JavaScript
Pro
Form

Conditional logic on form fields

Wrap the provided JavaScript code with a <script> tag. This code should run after the webpage finishes loading. At the beginning, hide the field with the ID form-field-email along with its label. Then, add a listener to check if the field with the ID form-field-subject has any content. If it does, show the form-field-email field; if not, keep it hidden along with its label. Put only JavaScript code and not HTML.

COPY PROMPT
Notes:
  1. form-field-email” is the ID of the field that should appear dependent on the field with the ID “form-field-subject.”
  2. Go to your form fields in the Advanced tab, copy your IDs, and replace the relevant IDs in the prompt. For example: “form-field-[PUT YOUR ID HERE].”
  3. Drag and drop the HTML widget above or after your form on the page and apply the prompt with your edits.
  4. Check the result in preview mode and not in the editor.

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Css
Pro
Form

Show a border and shadow when focusing on form fields

Add a border of 1px #000000 and slight white shadow of 15px to the fields on focus mode.

COPY PROMPT
Notes:

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Css
Pro
Animation

Infinity slide-left and slide-right icon animation

Add a continuously and smoothly effect on the icon. The animation should be slide left and slide right, infinity, with css. The animation stops when the mouse hover on it.

COPY PROMPT
Notes:

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Css
Pro
Animation

Infinity zoom in and out icon animation

Add a continuously and smoothly effect on the icon. The animation should be zoom in and zoom out, infinity, with css. The animation stops when the mouse hover on it.

COPY PROMPT
Notes:

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Css
Pro
Animation, Background, Button

Gradient animation on background button

Create a three color animated background on class .elementor-button. 45deg from #ff0909 to #ffc3a0 to #ffd8b1, in 5 seconds and infinity. Make it smooth.

COPY PROMPT
Notes:

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Css
Pro
Animation, Button, Hover

Button’s icon rotates and text moves on hover

Make a smooth rotate transform of 360deg with a transition of 0.8s on the button icon when hover on all the button. In the same time move the position of the button text 5px to the right, with a transition of 0.8s when hover on all the button. Add a smooth transition after removing the hover state.

COPY PROMPT
Notes:

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Css
Pro
Animation, Button, Hover

Button’s icon grows and text moves on hover

Make a smooth scale transform of 1.5 with a transition of 0.5s on the button icon when hover on all the button. In the same time move the position of the button text 8px to the right, with a transition of 0.5s when hover on all the button. Add a smooth transition after removing the hover state.

COPY PROMPT
Notes:

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Css
Pro
Animation, Background

Three solid colors animated background

Create a three solid color background animation. Start with background color #fc8e4e, then background color #ffc3a0 and then background color #ffafbd. Stay 2 seconds on each color. Make it smooth with fade effect.

COPY PROMPT
Notes:

Please note that, much like any other AI-generated content tool, the outcomes obtained from the suggested prompts in the Prompt Library can vary even when using the same prompt. Embrace the diversity and creativity in each result!

Discover a World of Possibilities with AI

Elementor AI

Non-refundable, try it free on any Elementor Website. Compatible with Elementor 3.13 and higher.

By purchasing Elementor AI, you agree to our AI Terms & Conditions

The price above includes Israeli VAT based on your billing address.

The above prices do not include applicable taxes based on your billing address.

How do Elementor AI credits work?

Your plan gives you an annual amount of credits to spend on the mix of prompts you want to enter. These are the credits needed for each type of prompt you write.

The Starter Plan enables you to generate up to 18K text entries or 18K code snippets or 540 image requests, or 450 Container prompts, or any mix.

The Power Plan enables you to annually generate up to 50K text entries or 50K code snippets or 1,500 image requests, or 1250 Container prompts, or any mix.