Skip to content
Back to skills

Ztp Native Intersection Reveal Pricing

ASecurity

Apply IntersectionObserver reveal via native to a pricing comparison, including implementation code, responsive constraints, RTL, reduced motion and browser acceptance tests. Use for pricing animation or responsive frontend engineering.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentjavascriptrustjavareactnodeapifrontenddocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Realjustawall/Perfect-AI --skill ztp-native-intersection-reveal-pricing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ztp Native Intersection Reveal Pricing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ztp Native Intersection Reveal Pricing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/realjustawall-ztp-native-intersection-reveal-pricing/badge)](https://www.skillsdirectory.com/skills/realjustawall-ztp-native-intersection-reveal-pricing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ztp-native-intersection-reveal-pricing
description: Apply IntersectionObserver reveal via native to a pricing comparison, including implementation code, responsive constraints, RTL, reduced motion and browser acceptance tests. Use for pricing animation or responsive frontend engineering.
---

# Codex skill: IntersectionObserver reveal for Pricing comparison

For each user request, inspect existing code first, apply the practical implementation below (do not just describe it), retain all existing product functionality, and test the actual result. The snippet is a starting integration recipe, not a complete standalone application. Avoid MCP and avoid fetching untrusted code automatically.

# Pattern: IntersectionObserver reveal for Pricing comparison

**Pattern ID:** `ztp-native-intersection-reveal-pricing`  
**Technique:** NATIVE / IntersectionObserver reveal  
**Audience:** Persian + English, desktop/mobile, touch/keyboard.  
**Reference:** https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

## Why and when

Intersection-based enhancements with content-first visibility. In the **Pricing comparison** context: plans, feature matrix, and CTA. Important constraint: **prices and feature availability must remain readable**. 

## Implementation prerequisites

- No dependency required. Use the existing project package manager and do not install packages without checking existing versions.
- Base responsive contract: inline sizes 320–2560 CSS px, content width independent of device, safe areas, container queries where useful.
- Create HTML semantic structure first; running animations are progressive enhancement, never a substitute for functionality.
- For a Perfect_AI request, honor the strict monochrome design system; otherwise choose colors through the palette-decision engine and audit contrast.

## Scoped markup starter (adapt, not copy into every component)

```html
<section id="zt-intersection-reveal-pricing" lang="fa" dir="rtl" aria-label="Pricing comparison">
  <h2 data-zt-heading>Pricing comparison: clear, real heading</h2>
  <div data-zt-collection>
    <p data-zt-item>Actual readable content; replace with verified product copy.</p>
  </div>
  <button type="button" data-zt-trigger>Open details</button>
  <span data-zt-status role="status"></span>
  <div data-zt-scene aria-hidden="true"></div>
  <!-- SVG-specific effects: add an accessible <svg> with [data-zt-path] and [data-zt-marker]. -->
  <!-- Draggable effect: add a nonessential visual node [data-zt-drag]. -->
  <!-- Dialog effect: add native <dialog> with [data-zt-close] control. -->
</section>
```

**Scaffold note:** Replace placeholder copy with project data, preserve heading hierarchy, and do not create imaginary claims.

## Technique implementation

```javascript
const nodes=document.querySelectorAll('#zt-intersection-reveal-pricing [data-zt-item]');
const observer=new IntersectionObserver((entries)=>entries.forEach(e=>{if(e.isIntersecting){e.target.dataset.visible='true';observer.unobserve(e.target);}}),{threshold:.12});
nodes.forEach(node=>observer.observe(node));
// CSS: [data-zt-item]{opacity:1} @media(prefers-reduced-motion:no-preference){[data-zt-item]{transition:opacity .5s,transform .5s;}[data-visible=false]{opacity:.2;transform:translateY(10px)}}
// Disconnect when view unmounts; initial content remains accessible.
```

**Runtime contract:** If snippet uses JavaScript, place it in the existing app lifecycle and remove listeners/observers during teardown. If snippet uses CSS, include it in a bundled stylesheet with feature detection and sensible non-support fallback.

## Interaction specification

1. Initial: content is visible and usable without JS, including with WebGL unsupported.
2. Enter/gesture: motion runs only when useful; keyboard/touch users get the same affordance and outcome.
3. During interaction: preserve critical pointer events and focus. Avoid forced synchronous layout in a frame callback.
4. Cancel/interruption: dispose observers, timers, animation handles and GPU resources, restore original styles.
5. Reverse/navigate: scroll back restores progress or safely retains final state; no duplicate listeners after route changes.

## Responsive + RTL acceptance matrix

| Width or mode | Required behavior |
|---|---|
| 320–374px | one-column content, no horizontal overflow, full labels and usable tap targets |
| 375–767px | natural wrapping, dynamic browser chrome, safe-area padding |
| 768–1023px | 2-column only if container is wide enough; no reliance on hover |
| 1024–1439px | balanced layout and legible supporting copy, bounded motion amplitude |
| >=1440px | max-width limits; 3D/compositing resolution remains budgeted |
| Persian RTL | logical CSS properties, correct mixed-direction numerals and focus flow |
| 200–400% zoom | content reflows without clipped functional elements |
| Reduced motion / WebGL blocked | static readable content; controls remain functional |

## Definition of done

- [ ] Correct semantic hierarchy and real content for pricing comparison.
- [ ] Verified: screen-reader table/list equivalence.
- [ ] Contrast target >= 4.5:1 for normal text, >= 3:1 for relevant UI boundaries and large text.
- [ ] Tested 320, 390, 768, 1024 and 1440px, RTL/LTR, keyboard, coarse pointer, reduced motion.
- [ ] No hidden error in the console; no React component leaks; screenshots compared where visual fidelity matters.
- [ ] Run bundle/build/lint + targeted browser test; document any unverified dependency-specific sample.

## Source and rights

Originally authored integration recipe based on the API documentation above; it is **not** copied original source from a third-party website. The scaffold is illustrative. Copy only pieces appropriate to the actual component. For library code verify package/version and upstream license.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.