How it works
A perpetual contract never expires, so nothing forces its price back to spot. Funding does that job. Every few hours, usually eight, one side pays the other. When the contract trades above spot, the rate is positive and longs pay shorts, which makes holding a long less attractive. When it trades below spot, shorts pay longs. The payment is calculated on the full position size, not on the margin.
Example with numbers
You hold a $10,000 long and the funding rate is 0.01% per eight hours. Each period you pay $1, or about $3 a day. If the rate jumps to 0.1% during a crowded rally, the same position costs $10 per period, $30 a day, which is 3% of a $1,000 margin every day.
The common mistake
Ignoring funding on trades held for days. A small rate multiplied by leverage and time becomes a real cost. The opposite mistake is opening a position only to collect funding without noticing that the price move against you can be many times larger than the payment.